From 066cefc083a0538a5ecd9722eb22226b451d1845 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 19 Feb 2016 23:42:19 -0500 Subject: Delimit words at unescaped operators Also expect EOF at end of script. --- (limited to 'parsing/lexer.sh') diff --git a/parsing/lexer.sh b/parsing/lexer.sh index 01bc721..003ee30 100644 --- a/parsing/lexer.sh +++ b/parsing/lexer.sh @@ -203,7 +203,7 @@ scan_word() lines=$((${lines} + 1)) word="${word}${c}" ;; - ' '|"${HT}") + ' '|"${HT}"|'&'|'|'|';'|'('|')'|'<'|'>') if ! ${in_param} && ! ${quoted}; then break fi -- cgit v0.9.1