X-Authentication-Warning: kendall.sfbr.org: jeffw set sender to jeffw AT darwin DOT sfbr DOT org using -f Date: Thu, 18 Oct 2001 11:53:45 -0500 From: JT Williams To: djgpp AT delorie DOT com Subject: bash 2.04: $# not preserved? Message-ID: <20011018115345.A21027@kendall.sfbr.org> Mail-Followup-To: djgpp AT delorie DOT com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Reply-To: djgpp AT delorie DOT com Can anyone confirm the following behavior with the djgpp port of bash 2.04? TIA/jtw djdev 2.03; bash 2.04 --------------------- % bash --version GNU bash, version 2.04.7(2)-release (i386-pc-msdosdjgpp) Copyright 1999 Free Software Foundation, Inc. % foo -x -y -z foo: before bar: n=3 bar: n=3 bar: shift 1: n=2 bar: shift 2: n=1 foo: after bar: n=3 <- n=3 !? Solaris ------- kendall% bash --version GNU bash, version 2.04.0(1)-release (sparc-sun-solaris2.7) Copyright 1999 Free Software Foundation, Inc. % foo -x -y -z foo: before bar: n=3 bar: n=3 bar: shift 1: n=2 bar: shift 2: n=1 foo: after bar: n=1 <- n=1 (as expected)