Re: [arch-general] BASH no longer does 'for i in $(ls); do ls $i; done'??

2010-05-19 Thread David C. Rankin
On 05/18/2010 03:47 PM, Sergey Manucharian wrote: Excerpts from Linas's message of Tue, 18 May 2010 22:31 +0200: David C. Rankin wrote: 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:

Re: [arch-general] BASH no longer does 'for i in $(ls); do ls $i; done'??

2010-05-19 Thread David C. Rankin
On 05/18/2010 03:58 PM, Aaron Griffin wrote: On Tue, May 18, 2010 at 3:47 PM, Sergey Manucharian ingeniw...@gmail.com wrote: Excerpts from Linas's message of Tue, 18 May 2010 22:31 +0200: David C. Rankin wrote: Guys, I'm usually quite good at one-liners, but my simple ones no longer

Re: [arch-general] BASH no longer does 'for i in $(ls); do ls $i; done'??

2010-05-19 Thread Jan de Groot
On Wed, 2010-05-19 at 01:41 -0500, David C. Rankin wrote: So the bottom line is don't alias 'ls'. And, I guess, the next question would be, how or where can I safely customize the behavior of ls without screwing myself again. Solution is simple: don't use ls for the for loops you're doing.

Re: [arch-general] BASH no longer does 'for i in $(ls); do ls $i; done'??

2010-05-19 Thread David C. Rankin
On 05/18/2010 03:23 PM, Daenyth Blank wrote: On Tue, May 18, 2010 at 16:17, David C. Rankin drankina...@suddenlinkmail.com wrote: 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: In

Re: [arch-general] BASH no longer does 'for i in $(ls); do ls $i; done'??

2010-05-19 Thread David C. Rankin
On 05/19/2010 01:48 AM, Jan de Groot wrote: On Wed, 2010-05-19 at 01:41 -0500, David C. Rankin wrote: So the bottom line is don't alias 'ls'. And, I guess, the next question would be, how or where can I safely customize the behavior of ls without screwing myself again. Solution is

Re: [arch-general] BASH no longer does 'for i in $(ls); do ls $i; done'??

2010-05-19 Thread Crouse
On Tue, May 18, 2010 at 3:58 PM, Aaron Griffin aaronmgrif...@gmail.com wrote: If this is the case, replace ls with /bin/ls in the above and try again or if your REALLY lazy like me :) \ls the \ runs the real ls, not the aliased version. However, Aaron's way will always work, and is

Re: [arch-general] BASH no longer does 'for i in $(ls); do ls $i; done'??

2010-05-19 Thread Caleb Cushing
you can also use env ls which I believe gets ls from the PATH -- Caleb Cushing http://xenoterracide.blogspot.com

[arch-general] BASH no longer does 'for i in $(ls); do ls $i; done'??

2010-05-18 Thread David C. Rankin
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 ..

Re: [arch-general] BASH no longer does 'for i in $(ls); do ls $i; done'??

2010-05-18 Thread Daenyth Blank
On Tue, May 18, 2010 at 16:17, David C. Rankin drankina...@suddenlinkmail.com wrote: 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: In short, you're doing it wrong.

Re: [arch-general] BASH no longer does 'for i in $(ls); do ls $i; done'??

2010-05-18 Thread Jeroen Op 't Eynde
On Tue, 18 May 2010 22:17:48 +0200, David C. Rankin drankina...@suddenlinkmail.com wrote: 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

Re: [arch-general] BASH no longer does 'for i in $(ls); do ls $i; done'??

2010-05-18 Thread Linas
David C. Rankin wrote: 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: What could keep the simple cli from working on Arch? I know this stuff worked before updates this

Re: [arch-general] BASH no longer does 'for i in $(ls); do ls $i; done'??

2010-05-18 Thread Sergey Manucharian
Excerpts from Linas's message of Tue, 18 May 2010 22:31 +0200: David C. Rankin wrote: 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: What could keep the simple cli from

Re: [arch-general] BASH no longer does 'for i in $(ls); do ls $i; done'??

2010-05-18 Thread Aaron Griffin
On Tue, May 18, 2010 at 3:47 PM, Sergey Manucharian ingeniw...@gmail.com wrote: Excerpts from Linas's message of Tue, 18 May 2010 22:31 +0200: David C. Rankin wrote: Guys,     I'm usually quite good at one-liners, but my simple ones no longer work in Arch. Same cli works fine in suse.

Re: [arch-general] BASH no longer does 'for i in $(ls); do ls $i; done'??

2010-05-18 Thread Samuel Martín Moro
you may want to try for i in $(`which ls` -d .) ; do `which ls` $(`which pwd`)/$i; done it does work here Samuel Martín Moro {EPITECH.} tek4 CamTrace S.A.S Nobody wants to say how this works. Maybe nobody knows ... Xorg.conf(5) On Tue, May 18, 2010 at 10:58 PM, Aaron

Re: [arch-general] BASH no longer does 'for i in $(ls); do ls $i; done'??

2010-05-18 Thread dave reisner
Using ls for something like this is never a good idea, as Daenyth's link repeatedly points out. Use bash's globbing to get the job done. for i in *; do foo $i done Also unlike ls, this won't fail because of aliases or white spaces, either. It just works(tm). d On Tue, May 18, 2010 at 5:40