bug-bash
[Top][All Lists]
Advanced

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

Re: IFS System variable


From: Paul Jarc
Subject: Re: IFS System variable
Date: Wed, 13 Feb 2002 09:52:01 -0500
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/20.7 (i386-redhat-linux-gnu)

Eric Khanukayev <Erick@prodigy.net> wrote:
> When I type:
> export IFS=: or export IFS=":"
> then
> echo $IFS - gives me standard IFS value (space,tab,new line)

No, it prints nothing.  This is because the value of IFS is used for
word splitting - any character in IFS's value is treated as a word
separator and is thus removed before the "echo" command is executed.
Try this instead (note double quotes):
$ echo "$IFS"


paul



reply via email to

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