Why Sponsor Oils? | source | all docs for version 0.22.0 | all versions | oilshell.org
Oils Reference — Chapter Mini Languages
This chapter describes "mini-languages" like glob patterns and brace expansion.
In contrast, the main sub languages of YSH are command, word, and expression.
(in progress)
TODO: glob syntax
TODO: extended glob syntax
Part of dbracket
History substitution uses !
.
These backslash escape sequences are used in echo
-e, printf, and in
C-style strings like $'foo\n'
:
\\ backslash
\a alert (BEL)
\b backspace
\c stop processing remaining input
\e the escape character \x1b
\f form feed
\n newline
\r carriage return
\t tab
\v vertical tab
\xHH the byte with value HH, in hexadecimal
\uHHHH the unicode char with value HHHH, in hexadecimal
\UHHHHHHHH the unicode char with value HHHHHHHH, in hexadecimal
Also:
\" Double quote.
Inconsistent octal escapes:
\0NNN echo -e '\0123'
\NNN printf '\123'
echo $'\123'
TODO: Verify other differences between echo -e
, printf
, and $''
. See
frontend/lexer_def.py
.