[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Seg history
From: |
Dennis Williamson |
Subject: |
Re: Seg history |
Date: |
Tue, 22 Oct 2019 18:24:52 -0500 |
On Tue, Oct 22, 2019, 8:10 AM younes berramdane <younesberramdane1@gmail.com>
wrote:
> Hello,
> I have found a seg in the history of bash while I was doing a project for
> my school,
> (Put fc -s at the last command of the history file [~/.sh_history] for
> bash posix or [~/.bash_history] for bash then launch bash and execute fc -s
> again)
>
> Best regards,
> Younes Berramdane.
>
This causes fc -s to re-execute itself in a tight loop repeatedly until a
seg fault occurs.
I don't know whether Bash should catch this but it definitely falls under
"doctor, it hurts when I do this" - IOW, don't do that. Especially since it
takes extra effort to set up the necessary conditions.