[coreutils-6.9] multiple utilities not handling escape char(\) properly when used with -, instead interpreting as option(could be a bash bug?)
ClarkConnect Community Edition release 4.0 (kernel 2.6.9-42.cc) I compiled the latest coreutils from source. Then I ran these series of commands: coreutils-6.9]# mkdir testdir coreutils-6.9]# cd testdir/ testdir]# ../src/touch +foo0 testdir]# ../src/touch \+foo1 testdir]# ../src/touch -bar0 ../src/touch: invalid option -- e Try `../src/touch --help' for more information. ^^ That error is correct as the - char is used for options. testdir]# ../src/touch \-bar1 ../src/touch: invalid option -- e Try `../src/touch --help' for more information. ^^ This is wrong, this should work!! testdir]# ../src/touch \\-bar2 ^^ Trying a double backslash to see what happens testdir]# ls +foo0 +foo1 \-bar2 ^^ It is what is expected. testdir]# ../src/touch '-bar3' ../src/touch: invalid option -- e Try `../src/touch --help' for more information. ^^ Trying single quotes testdir]# ../src/touch "-bar4" ../src/touch: invalid option -- e Try `../src/touch --help' for more information. ^^ Trying double quotes testdir]# ../src/mv +foo0 -bar5 ../src/mv: invalid option -- e Try `../src/mv --help' for more information. ^^ That error is correct as the - char is used for options. testdir]# ../src/mv +foo0 \-bar6 ../src/mv: invalid option -- e Try `../src/mv --help' for more information. ^^ This is wrong, this should work!! testdir]# ../src/touch ./-bar7 testdir]# ../src/touch ./\-bar8 testdir]# ls +foo0 +foo1 \-bar2 -bar7 -bar8 testdir]# As you can see from the above commands, \-barX is being interpreted as an option to touch/mv/etc instead of being part of the filename. Hooroo, Wilber ___ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils
[coreutils-6.9] ls and sort bug: ls and sort fails to sort alphabetically with and without options
My distro is ClarkConnect Community Edition release 4.0 (kernel 2.6.9-42.cc). I noticed that ls was failing to sort alphabetically so I grabbed the latest version of coreutils and compiled it to test it, which failed as well: ~]# wget http://ftp.gnu.org/gnu/coreutils/coreutils-6.9.tar.gz ~]# tar xvfz coreutils-6.9.tar.gz ~]# cd coreutils-6.9 coreutils-6.9]# ./configure coreutils-6.9]# make coreutils-6.9]# ldd src/ls librt.so.1 => /lib/tls/librt.so.1 (0x00111000) libc.so.6 => /lib/tls/libc.so.6 (0x00428000) libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00bda000) /lib/ld-linux.so.2 (0x00bf2000) coreutils-6.9]# src/ls -1 /var/arpwatch/ arp2ethers arp.dat arp-eth1.dat arpfetch arp-wlan0.dat d.awk duplicates.awk e.awk ethercodes.dat euppertolower.awk massagevendor massagevendor-old missingcodes.txt p.awk The same order in the output is produced by -alh(I'd imagine other options as well) as well as no options. -r produces the same order except reversed. The unsorted section is the arp* block: arp2ethers arp.dat arp-eth1.dat arpfetch arp-wlan0.dat Next I tried to pipe that through sort to see if it would come out sorted: coreutils-6.9]# src/ls -1 /var/arpwatch/ | grep arp | src/sort arp2ethers arp.dat arp-eth1.dat arpfetch arp-wlan0.dat I also tried passing various values to sort like -dfgin(not at the same time) and this had no effect on the sort order, each option looked like the output above. I would have expected the output to look like this: arp-eth1.dat arp-wlan0.dat arp.dat arp2ethers arpfetch or something similar, not the output I am currently getting. Hooroo, Wilber ___ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils
[coreutils-6.9] ls bug: ls failing to sort alphabetically with and without options
My distro is ClarkConnect Community Edition release 4.0 (kernel 2.6.9-42.cc). I noticed that ls was failing to sort alphabetically so I grabbed the latest version of coretuils and compiled it: ]# wget http://ftp.gnu.org/gnu/coreutils/coreutils-6.9.tar.gz ]# tar xvfz coreutils-6.9.tar.gz ]# cd coreutils-6.9 ___ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils