From owner-freebsd-questions@FreeBSD.ORG Wed Jan 24 15:47:42 2007 Return-Path: X-Original-To: freebsd-questions@FreeBSD.ORG Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0E82C16A403 for ; Wed, 24 Jan 2007 15:47:42 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.freebsd.org (Postfix) with ESMTP id 8F95313C4A7 for ; Wed, 24 Jan 2007 15:47:41 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (czgzuv@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id l0OFlUZg098160 for ; Wed, 24 Jan 2007 16:47:35 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id l0OFlUJR098159; Wed, 24 Jan 2007 16:47:30 +0100 (CET) (envelope-from olli) Date: Wed, 24 Jan 2007 16:47:30 +0100 (CET) Message-Id: <200701241547.l0OFlUJR098159@lurza.secnetix.de> From: Oliver Fromme To: freebsd-questions@FreeBSD.ORG In-Reply-To: <17846.45976.831959.633584@jerusalem.litteratus.org> X-Newsgroups: list.freebsd-questions User-Agent: tin/1.8.2-20060425 ("Shillay") (UNIX) (FreeBSD/4.11-STABLE (i386)) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 24 Jan 2007 16:47:35 +0100 (CET) Cc: Subject: Re: [OT] What does this pipe do? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jan 2007 15:47:42 -0000 Robert Huff wrote: > youshi10@u.washington.edu writes: > > I know this is a Unix shell command, and off-topic, but I'm > > curious. I've been reading a few 'make' commands at work that end > > in "|&" and I was wondering if that redirection string is > > synonymous to "| /dev/stdout". > > That's (t)csh-speak for "send both stdout and stderr to the > pipe". '|' only covers stdout. Just for completeness, ">&" (file) and ">|" (pipe) are also supported by zsh (which is a bourne-shell like sh, ksh or bash). In fact it's simply a shortcut for "2>&1" (which means to dup descriptor 2 [=stderr] to desciptor 1 [=stdout]). The effect is, as several people have pointed out, to redirect both stdout and stderr to the same file or pipe, respectively. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "That's what I love about GUIs: They make simple tasks easier, and complex tasks impossible." -- John William Chambless