dollar handling in here document

Ron Yorston rmy at pobox.com
Sun Apr 3 21:42:03 UTC 2016


Timo Teras wrote:
>Not sure if this is bug or not. But at least bash works different here:
>
>$ busybox sh a.sh 
>''
>
>$ bash a.sh 
>'$'
>
>$ cat a.sh 
>cat <<EOF
>'$'
>EOF

I reckon it's a bug.  If BusyBox is compiled without bash-compatibility
enabled it produces the same output as bash.

Patch to follow.

Ron


More information about the busybox mailing list