From owner-freebsd-hackers Fri Mar 15 16:26:20 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from iguana.icir.org (iguana.icir.org [192.150.187.36]) by hub.freebsd.org (Postfix) with ESMTP id D7B6137B43B for ; Fri, 15 Mar 2002 16:26:09 -0800 (PST) Received: (from rizzo@localhost) by iguana.icir.org (8.11.6/8.11.3) id g2G0Q9L93501; Fri, 15 Mar 2002 16:26:09 -0800 (PST) (envelope-from rizzo) Date: Fri, 15 Mar 2002 16:26:09 -0800 From: Luigi Rizzo To: hackers@freebsd.org Subject: weird sh behaviour Message-ID: <20020315162609.B93253@iguana.icir.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.23i 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 /bin/sh seems not to expanding metacharacters in filenames used for I/O redirection: $ /bin/sh $ ls -l $ touch bbb $ echo test > b* $ ls -l total 2 -rw-r--r-- 1 luigi wheel 5 Mar 16 01:20 b* -rw-r--r-- 1 luigi wheel 0 Mar 16 01:20 bbb $ By contrast, csh and bash do the right thing: bash-2.05a$ ls -l bash-2.05a$ touch bbb bash-2.05a$ echo test > b* bash-2.05a$ ls -l total 2 -rw-r--r-- 1 luigi wheel 5 Mar 16 01:24 bbb Is it a feature or a bug ? cheers luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message