ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] zsh/bash: как усмирить which?
@ 2007-09-07 12:49 Slava Semushin
  2007-09-07 13:03 ` Yuriy Kashirin
  0 siblings, 1 reply; 3+ messages in thread
From: Slava Semushin @ 2007-09-07 12:49 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

Здравствуйте!

[c0der@rock ~]$ /bin/bash -c 'which blam 2>/dev/null'
[c1der@rock ~]$ /bin/zsh -c 'which blam 2>/dev/null'
blam not found
[c1der@rock ~]$

Т.е. если программа не найдена, то zsh пишет об этом в stdout. Это так
и должно быть?

2at@: Алексей, я думаю, что это бага. Вешать?

[c0der@rock ~]$ rpm -q bash zsh
bash-3.1.17-alt2
zsh-4.3.4-alt1

-- 
+ Slava Semushin | slava.semushin @ gmail.com
+ ALT Linux Team | php-coder @ altlinux.ru

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [sisyphus] zsh/bash: как усмирить which?
  2007-09-07 12:49 [sisyphus] zsh/bash: как усмирить which? Slava Semushin
@ 2007-09-07 13:03 ` Yuriy Kashirin
  2007-09-07 16:02   ` Alexey Rusakov
  0 siblings, 1 reply; 3+ messages in thread
From: Yuriy Kashirin @ 2007-09-07 13:03 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

On Пятница 07 сентября 2007, Slava Semushin wrote:
> Здравствуйте!
>
> [c0der@rock ~]$ /bin/bash -c 'which blam 2>/dev/null'
> [c1der@rock ~]$ /bin/zsh -c 'which blam 2>/dev/null'
> blam not found
> [c1der@rock ~]$
>
> Т.е. если программа не найдена, то zsh пишет об этом в stdout. Это
> так и должно быть?
>
yura@uka ~> zsh -c 'which which'
which: shell built-in command
yura@uka ~> bash -c 'which which'
/usr/bin/which

Видимо, это не /usr/bin/which пишет в stdout, а встроенная в zsh 
команда which

-- 
 Best regards
 Yuriy Kashirin

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [sisyphus] zsh/bash: как усмирить which?
  2007-09-07 13:03 ` Yuriy Kashirin
@ 2007-09-07 16:02   ` Alexey Rusakov
  0 siblings, 0 replies; 3+ messages in thread
From: Alexey Rusakov @ 2007-09-07 16:02 UTC (permalink / raw)
  To: sisyphus

On Fri, 7 Sep 2007 16:03:01 +0300
Yuriy Kashirin wrote:

> On Пятница 07 сентября 2007, Slava Semushin wrote:
> > Здравствуйте!
> >
> > [c0der@rock ~]$ /bin/bash -c 'which blam 2>/dev/null'
> > [c1der@rock ~]$ /bin/zsh -c 'which blam 2>/dev/null'
> > blam not found
> > [c1der@rock ~]$
> >
> > Т.е. если программа не найдена, то zsh пишет об этом в stdout. Это
> > так и должно быть?
> >
> yura@uka ~> zsh -c 'which which'
> which: shell built-in command
> yura@uka ~> bash -c 'which which'
> /usr/bin/which
> 
> Видимо, это не /usr/bin/which пишет в stdout, а встроенная в zsh 
> команда which
+1. А ещё на всякий случай проверьте, не заалиасен ли which у вас. Команда
type понадёжнее в этом отношении, по-моему.

-- 
  Alexey "Ktirf" Rusakov
  GNOME Project
  ALT Linux Team


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-09-07 16:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-07 12:49 [sisyphus] zsh/bash: как усмирить which? Slava Semushin
2007-09-07 13:03 ` Yuriy Kashirin
2007-09-07 16:02   ` Alexey Rusakov

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git