Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <20000728163013.15552.qmail@web1306.mail.yahoo.com> Date: Fri, 28 Jul 2000 09:30:13 -0700 (PDT) From: Noel Yap Subject: shell script bug To: cygwin AT sourceware DOT cygnus DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii I have the following script asdf.sh: #!/bin/sh if [ $# = 1 ] then for v in "$@" do echo $# should be 1 echo "$v" done else for v in "$@" do echo $# isn\'t be 1 ./asdf.sh "$v" done fi Under bash, the output of the script is: 5 isn't 1 5 isn't 1 5 isn't 1 5 isn't 1 5 isn't 1 Under sh, there is no output. The output (verified on Solaris) should be: 5 isn't 1 1 should be 1 a b 5 isn't 1 1 should be 1 c d 5 isn't 1 1 should be 1 e f 5 isn't 1 1 should be 1 g 5 isn't 1 1 should be 1 h My CYGWIN is set to "export ntea" (if that matters). Noel __________________________________________________ Do You Yahoo!? Kick off your party with Yahoo! Invites. http://invites.yahoo.com/ -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com