zsh
Смотрю в сторону zsh, изучаю. Поясните мне такое поведение eval:
================================================================
% cat ~/.zshenv
setopt sh_option_letters sh_word_split glob_subst no_nomatch no_notify posix_builtins
% ls -l
total 4
-rw-r--r-- 1 stas stas 0 2008-08-01 17:36 TEST='*'
-rwxr-xr-x 1 stas stas 26 2008-08-01 16:44 test
% ./test
TEST='*'
% eval `./test`
% echo "$TEST"
*
% TEST=
% echo "$TEST"
% setopt nomatch
% eval `./test`
% echo "$TEST"
*
% TEST=
% echo "$TEST"
% rm TEST=\'\*\'
[shota@stas:/tmp/a]
% eval `./test`
zsh: no matches found: TEST='*'
[shota@stas:/tmp/a]
% echo "$TEST"
================================================================
Ы?
--
Stanislav
PS:
% zsh --version
zsh 4.3.6 (i686-pc-linux-gnu)
Reply to:
- Follow-Ups:
- Re: zsh
- From: Stanislav Maslovski <stanislav.maslovski@gmail.com>
- Re: zsh
- From: Artem Chuprina <ran@ran.pp.ru>