zsh-users
 help / color / mirror / code / Atom feed
From: Isaac Huang <iclaymore@gmail.com>
To: zsh-users@zsh.org
Subject: redirecting stdout of no/empty command
Date: Fri, 6 Jan 2012 11:34:26 -0700	[thread overview]
Message-ID: <CAOtRsER5YhM_-oQyOvRdvCGCx17FhfDj-x_G6kiHi_TsSo=ekA@mail.gmail.com> (raw)

Hi list,

I noticed a zsh behaviour today. If I tried to run '>/dev/null' (i.e.
stdout redirection of no command at all) on an interactive zsh, the
zsh would actually run a 'cat', and it wouldn't exit until a ^D or ^C.

The same thing on bash seemed to be a no-op. I wonder why zsh would
run 'cat' when it was given no command to run at all.

Please CC me as I'm not on the list. Thanks.

- Isaac


             reply	other threads:[~2012-01-06 18:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-06 18:34 Isaac Huang [this message]
2012-01-06 18:43 ` Daniel Shahaf
2012-01-06 19:07   ` Damien Thébault
2012-01-06 19:20     ` Daniel Shahaf
     [not found]   ` <CAEcrOvDimRXcWSrjnuasfQGy0F66xAg1bxTGmjMQ2_cgXCwKvQ__39184.4791862697$1325877047$gmane$org@mail.gmail.com>
2012-01-06 20:36     ` Stephane Chazelas

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='CAOtRsER5YhM_-oQyOvRdvCGCx17FhfDj-x_G6kiHi_TsSo=ekA@mail.gmail.com' \
    --to=iclaymore@gmail.com \
    --cc=zsh-users@zsh.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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).