diff options
author | P. J. McDermott <pj@pehjota.net> | 2016-02-20 11:18:54 (EST) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2016-02-20 11:18:54 (EST) |
commit | 0708bc9507fc1b4f1397938daaed2cc177d65aec (patch) | |
tree | 29cc9f6fdf94e099ff4194853bf5a8a50fa42401 /parsing/lexer.sh | |
parent | 055f3e9b50882e4dba51d7dbcdcc80c1aede4d83 (diff) | |
download | eggshell-0708bc9507fc1b4f1397938daaed2cc177d65aec.zip eggshell-0708bc9507fc1b4f1397938daaed2cc177d65aec.tar.gz eggshell-0708bc9507fc1b4f1397938daaed2cc177d65aec.tar.bz2 |
Prepare for command substitution
Diffstat (limited to 'parsing/lexer.sh')
-rw-r--r-- | parsing/lexer.sh | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/parsing/lexer.sh b/parsing/lexer.sh index e1d3aab..b03878d 100644 --- a/parsing/lexer.sh +++ b/parsing/lexer.sh @@ -389,6 +389,19 @@ scan_wordexp() ;; '(') # Arithmetic expansion or command substitution + pgetc + case "${c}" in + '(') + # Arithmetic expansion + synerr 'Arithmetic expansion is %s' \ + 'not yet supported' + ;; + *) + # Command substitution + synerr 'Command substitution is %s' \ + 'not yet supported' + ;; + esac ;; [@*#?$!A-Za-z0-9_-]) res="$(scan_param)" @@ -586,10 +599,11 @@ error() init_lexer() { local fn="${1}" - shift 1 + local ln="${2}" + shift 2 fname="${fn}" - lineno=1 + lineno=${ln} tokens='' pgetc next |