bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

nofork comsub in PS1 + ignoreeof


From: Grisha Levit
Subject: nofork comsub in PS1 + ignoreeof
Date: Sat, 19 Aug 2023 04:23:28 -0400

When a nofork command substitution is in PS1 and ignoreeof is enabled,
(sufficiently repeated) EOF doesn't actually cause the shell to exit:

$ PS1='${ :;}$ ' IGNOREEOF=1 bash --norc
$ ^D
Use "exit" to leave the shell.
$ ^D
Use "exit" to leave the shell.
...


reply via email to

[Prev in Thread] Current Thread [Next in Thread]