BASH no longer does 'for i in $(ls); do ls $i; done'??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Guys,

	I'm usually quite good at one-liners, but my simple ones no longer work in
Arch. Same cli works fine in suse. What have I messed up? To wit:

15:10 nirvana:~/dt/compiz/compizX11> l
total 24
drwxr-xr-x 6 david david 4096 May 18 15:04 .
drwxr-xr-x 9 david dcr   4096 May 18 15:04 ..
drwxr-xr-x 2 david david 4096 May 18 15:03 i586
drwxr-xr-x 2 david david 4096 May 18 15:03 noarch
drwxr-xr-x 2 david david 4096 May 18 15:03 src
drwxr-xr-x 2 david david 4096 May 18 15:03 x86_64

15:11 nirvana:~/dt/compiz/compizX11> for i in $(ls); do ls ${i}; done
ls: cannot access i586: No such file or directory
ls: cannot access noarch: No such file or directory
ls: cannot access src: No such file or directory
ls: cannot access x86_64: No such file or directory

15:11 nirvana:~/dt/compiz/compizX11> for i in $(ls -d ./*); do ls ${i}; done
ls: cannot access ./i586: No such file or directory
ls: cannot access ./noarch: No such file or directory
ls: cannot access ./src: No such file or directory
ls: cannot access ./x86_64: No such file or directory

	Huh? Same thing on a suse box:

15:14 alchemy:~/dt/compiz/compiz_11.0> l
total 24
drwxr-xr-x 6 david dcr 4096 2010-05-17 23:56 ./
drwxr-xr-x 9 david dcr 4096 2010-05-18 10:28 ../
drwxr-xr-x 2 david dcr 4096 2010-05-18 10:24 i586/
drwxr-xr-x 2 david dcr 4096 2010-05-17 23:56 noarch/
drwxr-xr-x 2 david dcr 4096 2010-05-18 10:22 src/
drwxr-xr-x 2 david dcr 4096 2010-05-18 10:21 x86_64/

15:15 alchemy:~/dt/compiz/compiz_11.0> for i in $(ls); do ls -1 ${i}; done
compiz-0.8.6-46.1.i586.rpm
compiz-bcop-0.8.4-6.1.i586.rpm
compizconfig-settings-manager-0.8.4-4.4.i586.rpm
compiz-plugins-extra-0.8.6-8.3.i586.rpm
compiz-plugins-extra-devel-0.8.6-8.3.i586.rpm
<snip>

	What could keep the simple cli from working on Arch? I know this stuff worked
before updates this morning... What should I look at?


-- 
David C. Rankin, J.D.,P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux