diff options
author | Fred Drake <fdrake@acm.org> | 1998-11-30 20:30:26 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1998-11-30 20:30:26 (GMT) |
commit | ca6d6355d753d65d364a02697b92ed6684e44475 (patch) | |
tree | 61a61f981c9ffa3c4273aa9b45dc22918f640235 | |
parent | a8ba364700a36d41448577fe30db471fa361b4ed (diff) | |
download | cpython-ca6d6355d753d65d364a02697b92ed6684e44475.zip cpython-ca6d6355d753d65d364a02697b92ed6684e44475.tar.gz cpython-ca6d6355d753d65d364a02697b92ed6684e44475.tar.bz2 |
l2hoption: Do the "right thing" to quote the right-hand-side of Perl
assignments. This allows '"', '$', and '@' to be included in
the values passed to parameters like --address.
-rwxr-xr-x | Doc/tools/mkhowto.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/tools/mkhowto.sh b/Doc/tools/mkhowto.sh index cd85ef0..88050d5 100755 --- a/Doc/tools/mkhowto.sh +++ b/Doc/tools/mkhowto.sh @@ -157,7 +157,8 @@ build_text() { l2hoption() { if [ "$2" ] ; then - echo "\$$1 = \"$2\";" >>$L2H_AUX_INIT_FILE + VALUE=`echo "$2" | sed 's/[$"@]/\\\\&/g'` + echo "\$$1 = \"$VALUE\";" >>$L2H_AUX_INIT_FILE fi } |