Package: posh
Version: 0.12.6+b1
Severity: normal

--- Please enter the report below this line. ---
It seems that posh tries to parse content of here-document if it is enclosed 
inside command substitution

If I have script "foo.sh":
foo="$(cat <<EOF
blah blah'
EOF
)"
printf '%s\n' "$foo"

$ posh foo.sh
foo.sh:6: no closing quote

If I replace single quote with ")", I get:
foo.sh: here document `EOF' unclosed

Same bahaviour if EOF is quoted, bash and dash runs it fine.
May be related to bug #235899

Regards,
Václav Doležal

--- System information. ---
Architecture: 
Kernel:       Linux 4.9.13-durin+

Debian Release: 9.0
  980 unstable        httpredir.debian.org 
  980 unstable        dl.cihar.com 
  960 testing         httpredir.debian.org 
  950 stable          security.debian.org 
  200 experimental    httpredir.debian.org 
  100 unstable        www.deb-multimedia.org 
  100 experimental    www.deb-multimedia.org 

--- Package information. ---
Depends          (Version) | Installed
==========================-+-===========
libc6            (>= 2.14) | 2.24-9
debconf          (>= 0.5)  | 1.5.60
 OR debconf-2.0            | 

Package's Recommends field is empty.

Package's Suggests field is empty.

Reply via email to