Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
question about posixbuiltins
- X-seq: zsh-users 20149
- From: Han Pingtian <hanpt@xxxxxxxxxxxxxxxxxx>
- To: zsh-user <zsh-users@xxxxxxx>
- Subject: question about posixbuiltins
- Date: Sun, 12 Apr 2015 21:40:49 +0800
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: zsh-user <zsh-users@xxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Hi,
The manual says:
POSIX_BUILTINS <K> <S>
When this option is set the command builtin can be used to exe‐
cute shell builtin commands. Parameter assignments specified
before shell functions and special builtins are kept after the
command completes unless the special builtin is prefixed with
the command builtin. Special builtins are ., :, break, con‐
tinue, declare, eval, exit, export, integer, local, readonly,
return, set, shift, source, times, trap and unset.
But looks like the parameter assignment before "command special-builtin"
is kept even though POSIX_BUILTINS has been set:
% zsh -f
localhost% setopt posixbuiltins
localhost% foo=bar command export a=b
localhost% print $foo
bar
localhost%
Messages sorted by:
Reverse Date,
Date,
Thread,
Author