On Fri, 1 Oct 2010 20:47:38 +0530 Nirbheek Chauhan <[email protected]> wrote:
> >> for i in $( ls 2>/dev/null ); do
[...]
> A nice way around this is to do the following:
>
> ls -1 | while read i; do
What pva carelessly omitted to point out was that using ls(1) is
incredibly bad bash programming, which is probably why stderr is being
redirected in this case, too. :)
jer
