[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.
...
- nofork comsub in PS1 + ignoreeof,
Grisha Levit <=