[Top][All Lists]

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

Re: printf '%s\n' "$@" versus <<< redirection

From: Chet Ramey
Subject: Re: printf '%s\n' "$@" versus <<< redirection
Date: Mon, 20 Feb 2023 10:40:13 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.8.0

On 2/18/23 12:45 PM, Mike Jonkmans wrote:

"If IFS is unset, or its value is exactly <space><tab><newline>, the default, then sequences of 
<space>, <tab>, and <newline> at the beginning and end of the results of the previous expansions are 
ignored, and any sequence of IFS characters not at the beginning or end serves to delimit words."

If IFS is unset then it is slightly ambiguous as to what the IFS characters are,
in the last part of this sentence.

If IFS is unset, word splitting and other uses behave as if it had the
default value of space, tab, newline.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU

reply via email to

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