summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorrmax <rmax>2004-11-19 10:20:26 (GMT)
committerrmax <rmax>2004-11-19 10:20:26 (GMT)
commita279227fee5d36f45e41bdad4c3c942cc4ebe331 (patch)
treec7b59c5bec40fcde9bb09a31eddcdf81c08ee5e1 /unix
parent05b9ba728e80500b05dcfdcbd11d0d38d9ed9cd4 (diff)
downloadtcl-a279227fee5d36f45e41bdad4c3c942cc4ebe331.zip
tcl-a279227fee5d36f45e41bdad4c3c942cc4ebe331.tar.gz
tcl-a279227fee5d36f45e41bdad4c3c942cc4ebe331.tar.bz2
Classic sed doesn't support | in REs.
Diffstat (limited to 'unix')
-rwxr-xr-xunix/installManPage7
1 files changed, 5 insertions, 2 deletions
diff --git a/unix/installManPage b/unix/installManPage
index 4157d26..93fd925 100755
--- a/unix/installManPage
+++ b/unix/installManPage
@@ -25,10 +25,12 @@ test -z "$S" && S="$DIR/"
# /^\\.SH NAME/{ ;# Look for a line, that starts with .SH NAME
# s/^.*$// ;# Delete the content of this line from the buffer
# n ;# Read next line
-# s/,\|\\\ //g ;# Remove all commas
+# s/,//g ;# Remove all commas ...
+# s/\\\ //g ;# .. and backslash-escaped spaces.
# s/ \\\-.*// ;# Delete from \- to the end of line
# p ;# print the result
# q ;# exit
+# }
#
# Backslashes are trippled in the sed script, because it is in
# backticks which don't pass backslashes literally.
@@ -39,7 +41,8 @@ NAMES=`sed -n '
/^\\.SH NAME/{
s/^.*$//
n
- s/,\|\\\ //g
+ s/,//g
+ s/\\\ //g
s/ \\\-.*//
p
q