help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] (no subject)


From: Greg Wooledge
Subject: Re: [Help-bash] (no subject)
Date: Fri, 22 Sep 2017 12:12:36 -0400
User-agent: NeoMutt/20170113 (1.7.2)

On Fri, Sep 22, 2017 at 10:43:43AM -0500, John McKown wrote:
> $ echo -n $IFS|od -tcx1
> 0000000

This does not show the value of IFS correctly because, again, you have
failed to quote properly.

wooledg:~$ IFS=$' \t\n'   # default value of IFS
wooledg:~$ echo -n $IFS | od -tcx1
0000000
wooledg:~$ printf %s "$IFS" | od -tcx1
0000000      \t  \n
         20  09  0a
0000003

http://mywiki.wooledge.org/Quotes



reply via email to

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