diff options
author | P. J. McDermott <pj@pehjota.net> | 2016-02-20 22:59:51 (EST) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2016-02-20 22:59:51 (EST) |
commit | 9e2a93ddddeb89aa2512f2c6ee09a740729d9704 (patch) | |
tree | e5f31dcad1d7e50506632dc715951729a049acd9 /parsing/parse.sh | |
parent | 292939d65a7ee4ceff225cb9bea671afc837f3b4 (diff) | |
download | eggshell-9e2a93ddddeb89aa2512f2c6ee09a740729d9704.zip eggshell-9e2a93ddddeb89aa2512f2c6ee09a740729d9704.tar.gz eggshell-9e2a93ddddeb89aa2512f2c6ee09a740729d9704.tar.bz2 |
Implement arithmetic expansion
Diffstat (limited to 'parsing/parse.sh')
-rw-r--r-- | parsing/parse.sh | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/parsing/parse.sh b/parsing/parse.sh index 8f73b32..6508142 100644 --- a/parsing/parse.sh +++ b/parsing/parse.sh @@ -624,12 +624,12 @@ try() } #try '"foo bar" && $baz || qux' '${quux%uux quuux' -try '"foo bar" && $baz || qux' '${quux%uux } quuux' -try 'foo ${bar}' -try 'foo ${#bar}' -try 'foo ${bar#baz}' -try 'foo ${#bar#}' -try 'foo ${^}' +#try '"foo bar" && $baz || qux' '${quux%uux } quuux' +#try 'foo ${bar}' +#try 'foo ${#bar}' +#try 'foo ${bar#baz}' +#try 'foo ${#bar#}' +#try 'foo ${^}' #try 'foo `bar`' #try 'foo &&' #try '{ foo; }' @@ -649,3 +649,7 @@ try 'foo ${^}' #try 'foo $(bar) baz' #try 'foo$(bar$(baz))qux' #try 'foo $((1 + 1))' +try '$((1 + 1))' +try '$((1 + (1 + 1)))' +try '$((1 + $(foo) + 1))' +try '$((1' |