You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
485 B
27 lines
485 B
2 years ago
|
# Use lexer.bash.command.substitution=2 to style command substitution
|
||
|
# so that both the scope of the command and the internal structure are visible.
|
||
|
|
||
|
# Nested command
|
||
|
$(ls -la$(ls *.c))
|
||
|
|
||
|
# Check strings and backticks in command
|
||
|
echo $('ls' "." `ls` $'.' $".")
|
||
|
|
||
|
PROJECT_DIR=$(rlwrap -S "Enter source path: " -e '' -i -o cat)
|
||
|
|
||
|
# Multiple nesting levels
|
||
|
$(ls -la$(ls $(c) $'*.c' ` $(${s})`))
|
||
|
|
||
|
# Multi-line
|
||
|
$(ls |
|
||
|
more)
|
||
|
|
||
|
$(
|
||
|
`x`
|
||
|
"x"
|
||
|
`ls`
|
||
|
$'x'
|
||
|
$"x"
|
||
|
)
|
||
|
#end -- checks termination of previous
|