bug-bash
[Top][All Lists]
Advanced

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

Re: Question on $@ vs $@$@


From: Chet Ramey
Subject: Re: Question on $@ vs $@$@
Date: Mon, 26 Aug 2024 14:58:01 -0400
User-agent: Mozilla Thunderbird

On 8/23/24 5:47 PM, Steffen Nurpmeso wrote:

  If IFS has a value other than the default, then sequences of the
  whitespace characters space, tab, and newline are ignored at the
  beginning and end of the word, as long as the whitespace
  character is in the value of IFS (an IFS  whitespace  characā€
  ter).

So IFS whitespace only if part of $IFS.

  Any  character in IFS that is not IFS whitespace, along
  with any adjacent IFS whitespace characters, delimits a field.

So this "adjacent" even if *not* part of $IFS.

I am genuinely curious how you concluded this, given the definition you
previously quoted.


  A sequence of IFS whitespace characters is also treated as
  a delimiter.

So this means that *regardless* of whatever $IFS is, the three IFS
whitespace characters are $IFS anyway *if* that is set to
a nin-empty non-default value.

Nonsense.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

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