mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-07-22 10:19:57 +00:00
handle quoted control sequences correctly
This commit is contained in:
@ -34,6 +34,12 @@ array=(first {1,2}suffix last)
|
||||
array=(first prefix{1,2} last)
|
||||
array=(first prefix{1,2}suffix last)
|
||||
|
||||
# arrays with brackets inside
|
||||
array=(first "(" second)
|
||||
array=(first ")" second)
|
||||
array=(first '(' second)
|
||||
array=(first ')' second)
|
||||
|
||||
# functions
|
||||
function() { single line }
|
||||
function() {
|
||||
@ -63,6 +69,18 @@ function() {
|
||||
{ inner shell }
|
||||
last
|
||||
}
|
||||
function () {
|
||||
body "{" argument
|
||||
}
|
||||
function () {
|
||||
body "}" argument
|
||||
}
|
||||
function () {
|
||||
body '{' argument
|
||||
}
|
||||
function () {
|
||||
body '}' argument
|
||||
}
|
||||
|
||||
# other statements
|
||||
rm -rf --no-preserve-root /*
|
||||
|
Reference in New Issue
Block a user