bug-coreutils
[Top][All Lists]
Advanced

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

[Fwd: ls gets confused by IFS environment variable]


From: Elmar Stellnberger
Subject: [Fwd: ls gets confused by IFS environment variable]
Date: Sat, 03 Mar 2007 14:41:24 +0100
User-agent: Thunderbird 2.0pre (X11/20070214)

coreutils-5.93-20


--- Begin Message --- Subject: ls gets confused by IFS environment variable Date: Sat, 03 Mar 2007 14:07:30 +0100 User-agent: Thunderbird 2.0pre (X11/20070214)
LS gets confused as soon as the IFS environment variable only contains
control characters.

# IFS contains an NL only:
> bash
> IFS=$(echo -e "\n")
> ls
/bin/ls: Ungültige Option --
„/bin/ls --help“ gibt weitere Informationen.

# IFS contains TAB,NL and SPACE:
> IFS=$(echo -e " \t\n")
> ls -1
bin
boot
dev
...

Strange! There is also nothing about IFS in the man or info pages of "ls".
Why has IFS an influence on "ls" at all?



--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]