Re: zsh
Stanislav Maslovski -> debian-russian@lists.debian.org @ Fri, 1 Aug 2008 17:51:39 +0400:
SM> Смотрю в сторону zsh, изучаю. Поясните мне такое поведение eval:
SM> ================================================================
SM> % cat ~/.zshenv
SM> setopt sh_option_letters sh_word_split glob_subst no_nomatch no_notify posix_builtins
SM> % ls -l
SM> total 4
SM> -rw-r--r-- 1 stas stas 0 2008-08-01 17:36 TEST='*'
SM> -rwxr-xr-x 1 stas stas 26 2008-08-01 16:44 test
SM> % ./test
SM> TEST='*'
SM> % eval `./test`
SM> % echo "$TEST"
SM> *
SM> % TEST=
SM> % echo "$TEST"
SM> % setopt nomatch
SM> % eval `./test`
SM> % echo "$TEST"
SM> *
SM> % TEST=
SM> % echo "$TEST"
SM> % rm TEST=\'\*\'
SM> [shota@stas:/tmp/a]
SM> % eval `./test`
SM> zsh: no matches found: TEST='*'
SM> [shota@stas:/tmp/a]
SM> % echo "$TEST"
SM> ================================================================
SM> Ы?
man zshexpn
/^COMMAND SUBSTITUTION
последнее предложение
--
Artem Chuprina
RFC2822: <ran{}ran.pp.ru> Jabber: ran@jabber.ran.pp.ru
hands-free BSD
-- (С)энта
Reply to:
- Follow-Ups:
- Re: zsh
- From: Stanislav Maslovski <stanislav.maslovski@gmail.com>
- References:
- zsh
- From: Stanislav Maslovski <stanislav.maslovski@gmail.com>