Skip to main content

Tilde (~) Token

Laurence MorganLess than 1 minute

Tilde (~) Token

Home directory path variable

Description

The tilde token is used as a lazy reference to the users home directory.

Examples

» out ~
/home/bob

» out ~joe
/home/joe

Detail

Tilde can be expanded inside double quotes, brace quotes as well as used naked. But it cannot be expanded inside single quotes.

» out ~
/home/bob

» out '~'
~

» out "~"
/home/bob

» out %(~)
/home/bob

See Also


This document was generated from gen/parser/variables_doc.yamlopen in new window.

Last update:
Contributors: Laurence Morgan,Laurence Morgan