bash:ifs_internal_field_separator

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
bash:ifs_internal_field_separator [2019/12/07 01:39] – created peterbash:ifs_internal_field_separator [2021/01/26 11:57] (current) – [BASH - IFS (internal field separator)] peter
Line 16: Line 16:
  
   * In the **read** command, if multiple variable-name arguments are specified, IFS is used to split the line of input so that each variable gets a single field of the input.  (The last variable gets all the remaining fields, if there are more fields than variables.)   * In the **read** command, if multiple variable-name arguments are specified, IFS is used to split the line of input so that each variable gets a single field of the input.  (The last variable gets all the remaining fields, if there are more fields than variables.)
- 
   * When performing WordSplitting on an unquoted expansion, IFS is used to split the value of the expansion into multiple words.   * When performing WordSplitting on an unquoted expansion, IFS is used to split the value of the expansion into multiple words.
- 
   * When performing the "$*" or "${array[*]}" expansion (* not @, and quoted -- see below!), the first character of IFS is placed between the elements in order to construct the final output string.   * When performing the "$*" or "${array[*]}" expansion (* not @, and quoted -- see below!), the first character of IFS is placed between the elements in order to construct the final output string.
- 
   * Likewise, when doing "${!prefix*}", the first character of IFS is placed between the variable names to make the output string. (Again, see below.)   * Likewise, when doing "${!prefix*}", the first character of IFS is placed between the variable names to make the output string. (Again, see below.)
- 
   * IFS is used by complete -W under programmable completion.    * IFS is used by complete -W under programmable completion. 
  
bash/ifs_internal_field_separator.1575682758.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki