[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

parse error running builtins from array

From: mk27
Subject: parse error running builtins from array
Date: Tue, 28 Jul 2009 11:14:34 -0700 (PDT)

cc=('who' 'bash -c "time ls -l"' 'date')

for e in 0 1 2; do ${cc[$e]}; done

produces an error:
ls: -c: line 0: unexpected EOF while looking for matching `"'
ls: -c: line 1: syntax error: unexpected end of file

well, there isn't a missing " AFAICT, and playing around with them has not
helped.  Does anyone have a way out of this?

View this message in context: 
Sent from the Gnu - Bash mailing list archive at Nabble.com.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]