[arch-general] BASH no longer does 'for i in $(ls); do ls $i; done'??
Crouse
crouse at archlinux.us
Wed May 19 23:41:11 EDT 2010
On Tue, May 18, 2010 at 3:58 PM, Aaron Griffin <aaronmgriffin at 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 usually way I use commands in my scripts.
IE: the full path, as many of our machines might have more than one
grep, and I might have that aliased as well.
More information about the arch-general
mailing list