diff options
author | kn <kn@cvs.openbsd.org> | 2020-05-21 13:42:03 +0000 |
---|---|---|
committer | kn <kn@cvs.openbsd.org> | 2020-05-21 13:42:03 +0000 |
commit | 843e6dd5fa87791c0c1cf5cdbb023b20fc84c50a (patch) | |
tree | 73f5dc3ec532e3e3b5a76032e38c3655ea1885f8 /distrib/miniroot/install.sub | |
parent | 6ed1c2821d34fdcfd68c068a66a4eab38ffb3c56 (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 'distrib/miniroot/install.sub')
-rw-r--r-- | distrib/miniroot/install.sub | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index 18b0a35c20b..5802faf79dc 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,5 +1,5 @@ #!/bin/ksh -# $OpenBSD: install.sub,v 1.1151 2020/05/21 11:54:41 kn Exp $ +# $OpenBSD: install.sub,v 1.1152 2020/05/21 13:42:02 kn Exp $ # # Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback # Copyright (c) 2015, Robert Peichaer <rpe@openbsd.org> @@ -195,8 +195,7 @@ show_cols() { rm -rf -- $_cdir } -# 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. stripcom() { local _file=$1 _line |