From owner-freebsd-bugs Wed Aug 16 6:34: 0 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from bsd.t-l.org (node15a63.a2000.nl [24.132.90.99]) by hub.freebsd.org (Postfix) with ESMTP id 2B02837BFBA for ; Wed, 16 Aug 2000 06:33:53 -0700 (PDT) (envelope-from jappe@lowlife.org) Received: from localhost ([127.0.0.1]) by bsd.t-l.org with esmtp (Exim 3.14 #1) id 13P3KO-0001QC-00 for freebsd-bugs@FreeBSD.ORG; Wed, 16 Aug 2000 15:33:56 +0200 Date: Wed, 16 Aug 2000 15:33:55 +0200 (CEST) From: Jappe Reuling X-Sender: jappe@bsd.t-l.org To: freebsd-bugs@FreeBSD.ORG Subject: I think I found a bug in /bin/sh Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, While writing a shell script I came acros something strange. I used an alias for 'echo' and it looks like the alias is ignored in a case statement. The code below produces the following on the screen: ---- H e l l o Hello ---- ---- #!/bin/sh alias echo="/bin/echo -n" hello() { local foo foo=1 case $foo in 1) echo "H" echo "e" echo "l" echo "l" echo "o" ;; esac echo "H" echo "e" echo "l" echo "l" echo "o" } hello ---- Hope this report helps. Jappe Reuling To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message