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

posh: doesn't barf as it should on peculiar here-document-within-command-subst construction

Package: posh
Version: 0.2.38
Severity: normal

On Tue, Mar 02, 2004 at 01:40:06PM -0500, Clint Adams wrote:
> > Is dash guaranteed to be POSIX 1003.* conforming?
> No, but posh is supposed to be, and any discrepancies should be filed as
> bug reports.

[0] branden@redwald:/tmp/branden % cat > bustage <<EOF
foo=\$(cat <<BLAH
Foo bar.  Baz.  Quux!
% ash -n bustage
bustage: 4: Syntax error: end of file unexpected (expecting ")")
[2] branden@redwald:/tmp/branden % posh -n bustage
[0] branden@redwald:/tmp/branden %

(The number in brackets in my shell prompt is the exit status of the preceding

G. Branden Robinson                |     One man's "magic" is another man's
Debian GNU/Linux                   |     engineering.  "Supernatural" is a
branden@debian.org                 |     null word.
http://people.debian.org/~branden/ |     -- Robert Heinlein

Attachment: signature.asc
Description: Digital signature

Reply to: