ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Alexey Rusakov <ktirf@altlinux.org>
To: sisyphus@lists.altlinux.org
Subject: Re: [sisyphus] zsh/bash: как усмирить which?
Date: Fri, 7 Sep 2007 20:02:38 +0400
Message-ID: <20070907200238.742bcd87@mission> (raw)
In-Reply-To: <200709071603.01725.yura@emict.com>

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


      reply	other threads:[~2007-09-07 16:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-07 12:49 Slava Semushin
2007-09-07 13:03 ` Yuriy Kashirin
2007-09-07 16:02   ` Alexey Rusakov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070907200238.742bcd87@mission \
    --to=ktirf@altlinux.org \
    --cc=sisyphus@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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