From 0708bc9507fc1b4f1397938daaed2cc177d65aec Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 20 Feb 2016 11:18:54 -0500 Subject: Prepare for command substitution --- (limited to 'parsing/lexer.sh') 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 -- cgit v0.9.1