From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 449 invoked by alias); 6 Jan 2012 18:34:35 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16706 Received: (qmail 11459 invoked from network); 6 Jan 2012 18:34:34 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.212.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=DYu8mWFh4BQ5m9LGxuBNCPdxL5is6kEDNXuBSm2w7Lk=; b=Bzr/uWv1My+ba6I6TUQSVkAT3lTyoVBqs5a2DTiaDWmuA3RLXbyHgxVNZlGudtSf5s ymQTxAp5m2OtmMu/bIHUfjw7KJoKKSRaJHBYP2G0f9Dw6EKNqTfmL2m5CfxaIe6QS6IW q+JG00t9fa62xJlR5JXUd3JjzPrTD/0FczE9M= MIME-Version: 1.0 Date: Fri, 6 Jan 2012 11:34:26 -0700 Message-ID: Subject: redirecting stdout of no/empty command From: Isaac Huang To: zsh-users@zsh.org Content-Type: text/plain; charset=ISO-8859-1 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