You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given a script foo.sh which osh cannot parse, source foo.sh gives much less helpful information than osh foo.sh, simply outputting the contents of the script rather than describing the errors.
$ cat foo.sh
declare -a foo
$ result/bin/osh -c 'source foo.sh'
Error parsing code 'declare -a foo\n'
$ result/bin/osh foo.sh
Line 1 of 'foo.sh'
declare -a foo
^~
Invalid variable name '-a'
---
Line 0 of '<unknown>'
<no position info for token>
Error parsing AndOr in ParseCommandTerm
---
The text was updated successfully, but these errors were encountered:
Given a script
foo.sh
which osh cannot parse,source foo.sh
gives much less helpful information thanosh foo.sh
, simply outputting the contents of the script rather than describing the errors.The text was updated successfully, but these errors were encountered: