* BUG: set -n in interactive shell (3.0-xxx)
@ 1996-07-29 6:49 Andrej Borsenkow
1996-07-31 2:40 ` Zefram
0 siblings, 1 reply; 2+ messages in thread
From: Andrej Borsenkow @ 1996-07-29 6:49 UTC (permalink / raw)
To: Zsh workers mailing list
Hi!
Small problem with no_exec option. If I per chance do 'set -n' in
interactive (worse, login) shell *and* ignoreeof option is set, it is no
more possible to leave the shell at all!!!
^D is rejected and logout/exit are not executed.
Probably, the option should be set only on command line (as with some
other)? What do you think?
greetings
-------------------------------------------------------------------------
Andrej Borsenkow Fax: +7 (095) 252 01 05
SNI ITS Moscow Tel: +7 (095) 252 13 88
NERV: borsenkow.msk E-Mail: borsenkow.msk@sni.de
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: BUG: set -n in interactive shell (3.0-xxx)
1996-07-29 6:49 BUG: set -n in interactive shell (3.0-xxx) Andrej Borsenkow
@ 1996-07-31 2:40 ` Zefram
0 siblings, 0 replies; 2+ messages in thread
From: Zefram @ 1996-07-31 2:40 UTC (permalink / raw)
To: borsenkow.msk; +Cc: zsh-workers
>Small problem with no_exec option. If I per chance do 'set -n' in
>interactive (worse, login) shell *and* ignoreeof option is set, it is no
>more possible to leave the shell at all!!!
>^D is rejected and logout/exit are not executed.
Ten ^Ds will still exit. This is a safety feature in case the terminal
*really* goes away, as opposed to the user manually sending EOF, but it
can also be used to log out.
>Probably, the option should be set only on command line (as with some
>other)? What do you think?
No. Two reasons: first, the options that can only be set on the
command line are very special ones that determine where commands come
from (and hence can't be meaningfully changed). Second, not accepting
`set -n` would make a traditional shenanigan involving .profile
impossible.
(There's also the trifling issue of POSIX conformance, but we tend not
to be too concerned about that here.)
-zefram
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1996-07-31 2:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-07-29 6:49 BUG: set -n in interactive shell (3.0-xxx) Andrej Borsenkow
1996-07-31 2:40 ` Zefram
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).