From owner-freebsd-hackers Fri Mar 15 17:14:42 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from descent.robbins.dropbear.id.au (112.b.010.mel.iprimus.net.au [210.50.201.112]) by hub.freebsd.org (Postfix) with ESMTP id B94F837B419 for ; Fri, 15 Mar 2002 17:14:37 -0800 (PST) Received: (from tim@localhost) by descent.robbins.dropbear.id.au (8.11.6/8.11.6) id g2G18jJ03914; Sat, 16 Mar 2002 12:08:45 +1100 (EST) (envelope-from tim) Date: Sat, 16 Mar 2002 12:08:45 +1100 From: "Tim J. Robbins" To: Luigi Rizzo Cc: hackers@FreeBSD.ORG Subject: Re: weird sh behaviour Message-ID: <20020316120845.A3882@descent.robbins.dropbear.id.au> References: <20020315162609.B93253@iguana.icir.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020315162609.B93253@iguana.icir.org>; from rizzo@icir.org on Fri, Mar 15, 2002 at 04:26:09PM -0800 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Mar 15, 2002 at 04:26:09PM -0800, Luigi Rizzo wrote: > /bin/sh seems not to expanding metacharacters in filenames used for > I/O redirection: *snip* > Is it a feature or a bug ? From my understanding of the POSIX standard, pathname expansion (globbing etc.) should be performed on the word following the > or <, and the result is undefined if more than one file name matches the pattern. FWIW Solaris /bin/sh does not expand, /bin/ksh does, ksh93 does, zsh does. Tim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message