help on bash-3.2
Is it possible that this error relays to bash-3.2.0 ? If I configure kdebase-3.5.6, I get this error: checking for srandom... yes checking if srandom needs custom prototype... no checking for S_ISSOCK... yes checking for MAXPATHLEN... ./configure: line 61317: syntax error near unexpected token `do' ./configure: line 61317: ` dirs=`for i in $files; do if test -d $i; then echo $i; fi; done`' bash-3.2$ Where the error occurs in configure: - DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin" TOPSUBDIRS="" if test ! -s $srcdir/subdirs; then files=`cd $srcdir && ls -1` dirs=`for i in $files; do if test -d $i; then echo $i; fi; done` for i in $dirs; do echo $i >> $srcdir/subdirs done fi - thanks bastl ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash
bash-3.2 breaks mc (echo -e '\137')
Configuration Information [Automatically generated, do not change]: Machine: amd64-linux OS: suse90 Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='amd64-linux' -DCONF_OSTYPE='suse90' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu' -DCONF_VENDOR='unknown' -DLOCALEDIR='/scr/os2-suse90/koenig/bash-3.2.1-1/PREINSTALL//usr/local//share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -O2 -D_LARGE_FILES -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 uname output: Linux atuin 2.6.16.21-0.25-smp #1 SMP Tue Sep 19 07:26:15 UTC 2006 x86_64 x86_64 x86_64 GNU/Linux Machine Type: x86_64-unknown-linux-gnu Bash Version: 3.2 Patch Level: 1 Release Status: release Description: bash versions before 3.2 all allowed echo -e '\137' to display an underscore, but now in 3.2 _only_ echo -e '\0137' seems to be valid. this breaks apps and scripts which (still) use the old (non-posix) always-three-digit-oactal-number scheme. one such application is mc (upto 4.6.1). the following fails _only_ with bash-3.2 so far: mkdir a_b cd a_b mc mc can't "cd" to $CWD because of the underscore in "a_b" which roughly gets translated into something like echo -e a\\137b | bash-running-on-pty which now fails. please tell me that this is just a bug in decent bash which will be fixed, and not yet another braindaed posix compatibility which breaks scripts which have been working really for decades! I know that using /bin/sh will work around this new habit, but IMHO that's not an option in quite some use cases (e.g. login shells;-)) Harald -- "I hope to die ___ _ before I *have* to use Microsoft Word.", 0--,|/OOO\ Donald E. Knuth, 02-Oct-2001 in Tuebingen.<_/ / /OOO\ \ \/OOO\ \ O|// Harald Koenig \/\/\/\/\/\/\/\/\/ science+computing ag// / \\ \ [EMAIL PROTECTED]^ ^ ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash
Re: Did I find a Bug in /bin/ls or in bash?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Robert K. Nelson on 2/6/2007 7:51 AM: > I am running SuSE 10.2. When I type the command: > > /bin/ls [A-B]* > > it lists all files starting with "b" but none starting with "a". This is not a bug, but is due to your choice of locale, and its choice of collating sequences. Try exporting LC_ALL=C to see the difference. > coreutils-6.4-10 > bash-3.1-55 Consider upgrading. coreutils is at 6.7, and bash at 3.2. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFyWwr84KuGfSFAYARAtVsAKCQ0BCV0vb1N1uzWoVOSIoYgTBt7ACfcqQU uo6FP4q3CaI6GrBt2iuB0Hg= =uW+0 -END PGP SIGNATURE- ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash
Did I find a Bug in /bin/ls or in bash?
I am running SuSE 10.2. When I type the command: /bin/ls [A-B]* it lists all files starting with "b" but none starting with "a". The command: /bin/ls [a-b]* lists all files starting with "a" or "b", as expected. coreutils-6.4-10 bash-3.1-55 Thanks, Bob -- Robert K. Nelson President Airflow Sciences Corporation 12190 Hubbard Street, Livonia, MI 48150-1737 (734) 525-0300 FAX (734) 525-0303 www.airflowsciences.com ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash