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

Aaron Griffin aaronmgriffin at gmail.com
Tue May 18 16:58:07 EDT 2010


On Tue, May 18, 2010 at 3:47 PM, Sergey Manucharian
<ingeniware at 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. 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 morning... What should I look
>> > at?
>> Bash was updated from 4.1.5(2) to 4.1.7(2).
>> I can't reproduce it, though.
>
> I cannot reproduce it either and suspect that your "ls" under $() is
> not the real ls, but an alias. I've played with some, and they indeed
> produce bad output.

If this is the case, replace "ls" with "/bin/ls" in the above and try again


More information about the arch-general mailing list