BSDi BSD/OS 3.1’s /bin/ksh (PD KSH v5.2.8 96/08/19) is horridly broken and

removes the \n part of a “\\\n” sequence, but not the backslash ⇒ we can’t
use line continuation in a here document

someone might want to add this to *(autoconf) Portable Shell::
This commit is contained in:
tg 2008-07-15 23:44:51 +00:00
parent 31145570ef
commit f894288204
1 changed files with 2 additions and 3 deletions

View File

@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.344 2008/07/15 20:54:47 tg Exp $' srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.345 2008/07/15 23:44:51 tg Exp $'
#- #-
# Environment used: CC CFLAGS CPPFLAGS LDFLAGS LIBS NOWARN NROFF TARGET_OS # Environment used: CC CFLAGS CPPFLAGS LDFLAGS LIBS NOWARN NROFF TARGET_OS
# CPPFLAGS recognised: MKSH_SMALL MKSH_ASSUME_UTF8 MKSH_NOPWNAM MKSH_NOVI # CPPFLAGS recognised: MKSH_SMALL MKSH_ASSUME_UTF8 MKSH_NOPWNAM MKSH_NOVI
@ -1273,8 +1273,7 @@ cat >>test.sh <<-EOF
print "Perl interpreter '\$perli' running on '\$perlos'" print "Perl interpreter '\$perli' running on '\$perlos'"
[[ -n \$perlos ]] && break [[ -n \$perlos ]] && break
done done
exec \$perli '$srcdir/check.pl' -s '$srcdir/check.t' \\ exec \$perli '$srcdir/check.pl' -s '$srcdir/check.t' -p '$curdir/mksh' -C \${check_categories#,} \$*$tsts
-p '$curdir/mksh' -C \${check_categories#,} \$*$tsts
EOF EOF
chmod 755 test.sh chmod 755 test.sh
echo set -x >Rebuild.sh echo set -x >Rebuild.sh