* [Comm] zsh: зачем ему кавычки ?
@ 2006-01-05 0:43 Arioch
2006-01-05 2:35 ` Evgenii Terechkov
2006-02-04 16:24 ` Michael Shigorin
0 siblings, 2 replies; 5+ messages in thread
From: Arioch @ 2006-01-05 0:43 UTC (permalink / raw)
To: community
Что делает zsh с двойными кавычками и зачем? Надоело их слэшами искейпить :(
И почему-то не работает:
grep \"--reply\" /usr/bin/xdg-desktop-entry-spec-apps-postrun
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Comm] zsh: зачем ему кавычки ?
2006-01-05 0:43 [Comm] zsh: зачем ему кавычки ? Arioch
@ 2006-01-05 2:35 ` Evgenii Terechkov
2006-01-05 6:05 ` [Comm] " Arioch
2006-02-04 16:24 ` Michael Shigorin
1 sibling, 1 reply; 5+ messages in thread
From: Evgenii Terechkov @ 2006-01-05 2:35 UTC (permalink / raw)
To: ALT Linux Community
Arioch писал:
> Что делает zsh с двойными кавычками и зачем? Надоело их слэшами
> искейпить :(
Раскрывает :-) Вроде бы как перл.
> И почему-то не работает:
> grep \"--reply\" /usr/bin/xdg-desktop-entry-spec-apps-postrun
так у меня работает:
grep -- '"--reply"'
В info zsh это вроде есть, иначе где ещё я это читал.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Comm] Re: zsh: зачем ему кавычки ?
2006-01-05 2:35 ` Evgenii Terechkov
@ 2006-01-05 6:05 ` Arioch
2006-01-05 6:24 ` Evgenii Terechkov
0 siblings, 1 reply; 5+ messages in thread
From: Arioch @ 2006-01-05 6:05 UTC (permalink / raw)
To: community
Evgenii Terechkov пишет:
>> И почему-то не работает:
>> grep \"--reply\" /usr/bin/xdg-desktop-entry-spec-apps-postrun
>
> так у меня работает:
> grep -- '"--reply"'
интересно, а в чем разница (
>
> В info zsh это вроде есть, иначе где ещё я это читал.
Должно быть, однако фиг найдешь. :(
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Comm] Re: zsh: зачем ему кавычки ?
2006-01-05 6:05 ` [Comm] " Arioch
@ 2006-01-05 6:24 ` Evgenii Terechkov
0 siblings, 0 replies; 5+ messages in thread
From: Evgenii Terechkov @ 2006-01-05 6:24 UTC (permalink / raw)
To: ALT Linux Community
Arioch писал:
>>> И почему-то не работает:
>>> grep \"--reply\" /usr/bin/xdg-desktop-entry-spec-apps-postrun
>> так у меня работает:
>> grep -- '"--reply"'
> интересно, а в чем разница (
Вы будете смеяться, но я попробовал ваш вариант (эскеипить кавычки, но с
--) - он у меня тоже работает. Действительно, почему бы ему и не работать?
Вывод: как-то "не так" настроен zsh (ИМХО его нельзя при сборке ТАК
поломать). Вообще, как имеено не работает первая команда (как ругается).
Ну и на всякий: какая версия zsh?
%R -q zsh
zsh-4.2.6-alt1 (самосборный)
Есть рядом и 4.2.1 - там таже "всё работает" (tm) :-)
>>
>> В info zsh это вроде есть, иначе где ещё я это читал.
> Должно быть, однако фиг найдешь. :(
Используйте консольный (а не емаксовый) info - там C-s работает
рекурсивно :-)
Инфо для zsh - один из самых внятных.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Comm] Re: zsh: зачем ему кавычки ?
2006-01-05 0:43 [Comm] zsh: зачем ему кавычки ? Arioch
2006-01-05 2:35 ` Evgenii Terechkov
@ 2006-02-04 16:24 ` Michael Shigorin
1 sibling, 0 replies; 5+ messages in thread
From: Michael Shigorin @ 2006-02-04 16:24 UTC (permalink / raw)
To: community
On Thu, Jan 05, 2006 at 03:43:21AM +0300, Arioch wrote:
> Что делает zsh с двойными кавычками и зачем? Надоело их слэшами
> искейпить :(
Возможно, ответ содержится где-то здесь:
setopt histexpiredupsfirst histfindnodups histignoredups histnostore histverify
setopt histignorespace histexpiredupsfirst
setopt autocd bgnice correct nohup nonomatch
setopt listpacked listtypes
(nonomatch?)
> И почему-то не работает:
> grep \"--reply\" /usr/bin/xdg-desktop-entry-spec-apps-postrun
Вообще-то положено grep -- -pattern. Читайте документацию.
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-02-04 16:24 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-05 0:43 [Comm] zsh: зачем ему кавычки ? Arioch
2006-01-05 2:35 ` Evgenii Terechkov
2006-01-05 6:05 ` [Comm] " Arioch
2006-01-05 6:24 ` Evgenii Terechkov
2006-02-04 16:24 ` Michael Shigorin
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git