Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: "setopt noexec" and interactive shells
- X-seq: zsh-workers 13802
- From: Zefram <zefram@xxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- Subject: Re: "setopt noexec" and interactive shells
- Date: Tue, 27 Mar 2001 20:25:35 +0100 (BST)
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <1010327191817.ZM14338@xxxxxxxxxxxxxxxxxxxxxxx> from Bart Schaefer at "Mar 27, 2001 07:18:16 pm"
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Bart Schaefer wrote:
>Aha. But, unlike `interactive', there's no reason not to allow `noexec'
>to become set in a shell function, provided that it's going to be restored
>again by `localoptions' when the function exits.
*grumble*. What's anyone ever going to use noexec for other than syntax
checking? I'd prefer that we give the option a consistent behaviour.
For the record, pdksh makes no such distinction between commands in a
function and commands at the top level:
$ foo () { echo foo $-; set -n; echo bar $-; }
$ echo foo $-
foo ims
$ foo
foo ims
bar imns
$ echo bar $-
bar imns
-zefram
Messages sorted by:
Reverse Date,
Date,
Thread,
Author