From owner-freebsd-questions@FreeBSD.ORG Thu Jan 25 03:50:17 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 6999616A402 for ; Thu, 25 Jan 2007 03:50:17 +0000 (UTC) (envelope-from parv@pair.com) Received: from mta13.adelphia.net (mta13.mail.adelphia.net [68.168.78.44]) by mx1.freebsd.org (Postfix) with ESMTP id CFAF013C428 for ; Thu, 25 Jan 2007 03:50:16 +0000 (UTC) (envelope-from parv@pair.com) Received: from default.chvlva.adelphia.net ([24.126.17.68]) by mta13.adelphia.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20070125035015.ECRG11551.mta13.adelphia.net@default.chvlva.adelphia.net>; Wed, 24 Jan 2007 22:50:15 -0500 Received: by default.chvlva.adelphia.net (Postfix, from userid 1000) id ECCA7B716; Wed, 24 Jan 2007 22:50:23 -0500 (EST) Date: Wed, 24 Jan 2007 22:50:23 -0500 From: parv@pair.com To: Oliver Fromme Message-ID: <20070125035023.GA4657@holestein.holy.cow> Mail-Followup-To: Oliver Fromme , f-q References: <17846.45976.831959.633584@jerusalem.litteratus.org> <200701241547.l0OFlUJR098159@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200701241547.l0OFlUJR098159@lurza.secnetix.de> Cc: f-q 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: Thu, 25 Jan 2007 03:50:17 -0000 in message <200701241547.l0OFlUJR098159@lurza.secnetix.de>, wrote Oliver Fromme thusly... > > Just for completeness, ">&" (file) and ">|" (pipe) are also ^^ ^^ > supported by zsh (which is a bourne-shell like sh, ksh or bash). The ">|" construct (in bash [23] & zsh 4), as I know, is to bypass no-clobber option (when set of course) when redirecting to a file. Actually, from zshall(1) ... >| word >! word Same as >, except that the file is truncated to zero length if it exists, even if CLOBBER is unset. ... >>| word >>! word Same as >>, except that the file is created if it does not exist, even if CLOBBER is unset. > In fact it's simply a shortcut for "2>&1" (which means to dup > descriptor 2 [=stderr] to desciptor 1 [=stdout]). - Parv --