Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
syntax:expansion:tilde [2011/06/04 15:20]
thebonsai crosslink variables
syntax:expansion:tilde [2017/03/05 18:07] (current)
fgrose [Tilde expansion] punctuation
Line 24: Line 24:
 Tilde expansion is only performed, when the tilde-construct is at the beginning of a word, or a separate word. Tilde expansion is only performed, when the tilde-construct is at the beginning of a word, or a separate word.
  
-If there'​s nothing to expand, i.e. in case of a wrong username or any other error condition, the tilde construct is not replaced, it stays what it is.+If there'​s nothing to expand, i.e.in case of a wrong username or any other error condition, the tilde construct is not replaced, it stays what it is.
  
 Tilde expansion is also performed everytime a variable is assigned: Tilde expansion is also performed everytime a variable is assigned:
Line 31: Line 31:
  
 <note info> <note info>
-As of now (September 2008) the following constructs **also** works, though it's not a variable assignment:+As of now (Bash 4.3-alpha) the following constructs **also** works, though it's not a variable assignment:
 <​code>​ <​code>​
 echo foo=~ echo foo=~
  • syntax/expansion/tilde.1307200802.txt
  • Last modified: 2011/06/04 15:20
  • by thebonsai