summaryrefslogtreecommitdiff
path: root/etc/netstart
diff options
context:
space:
mode:
authorkn <kn@cvs.openbsd.org>2020-05-21 13:42:03 +0000
committerkn <kn@cvs.openbsd.org>2020-05-21 13:42:03 +0000
commit843e6dd5fa87791c0c1cf5cdbb023b20fc84c50a (patch)
tree73f5dc3ec532e3e3b5a76032e38c3655ea1885f8 /etc/netstart
parent6ed1c2821d34fdcfd68c068a66a4eab38ffb3c56 (diff)
Fix stripcom() description wrt. comments not on their own line
Neither netstart's nor install.sub's (subtly different) implementations remove trailing comments on lines not starting as a comment, e.g., lines like "up #not down" go through unaltered and without "#not down" being removed. Only lines *beginning* with the comment sign ("#") are stripped. No functional change, just updating function descriptions.
Diffstat (limited to 'etc/netstart')
-rw-r--r--etc/netstart5
1 files changed, 2 insertions, 3 deletions
diff --git a/etc/netstart b/etc/netstart
index ad5d7d215af..06054091b65 100644
--- a/etc/netstart
+++ b/etc/netstart
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: netstart,v 1.203 2020/05/21 11:54:41 kn Exp $
+# $OpenBSD: netstart,v 1.204 2020/05/21 13:42:02 kn Exp $
# Turn off Strict Bourne shell mode.
set +o sh
@@ -11,8 +11,7 @@ usage() {
exit 1
}
-# Echo file $1 to stdout. Skip comment lines and delete everything
-# after the first '#' from other lines. Strip leading and trailing
+# Echo file $1 to stdout. Skip comment lines. Strip leading and trailing
# whitespace if IFS is set.
# Usage: stripcom /path/to/file
stripcom() {