differecnce between ${IFS} and "${IFS}"
- From: Decare <decare@xxxxxxxx>
- Date: Mon, 08 Mar 2010 12:55:54 -0100
The following two commands have different effect.
$ echo A${IFS}B
A B
$ echo "A${IFS}B"
A
B
It is obvious that the first one interprets `IFS' as
space, while the second interprets it as new line.
In fect, the `IFS' represents three characters, namely
space, tab, and new line. why different choices occur
in different situations?
--
ego cogito ergo sum
.
- Follow-Ups:
- Re: differecnce between ${IFS} and "${IFS}"
- From: Seebs
- Re: differecnce between ${IFS} and "${IFS}"
- From: Dominic Fandrey
- Re: differecnce between ${IFS} and "${IFS}"
- From: mop2
- Re: differecnce between ${IFS} and "${IFS}"
- From: pk
- Re: differecnce between ${IFS} and "${IFS}"
- Prev by Date: Re: FS Monitor
- Next by Date: Re: differecnce between ${IFS} and "${IFS}"
- Previous by thread: Re: FS Monitor
- Next by thread: Re: differecnce between ${IFS} and "${IFS}"
- Index(es):
Relevant Pages
|