From: rpe Date: Fri, 7 Apr 2017 21:44:07 +0000 (+0000) Subject: Align comments of stripcom() function in netstart and install.sub. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=952fbff68274019693ec5e2aa00e7c342a0b7c76;p=openbsd Align comments of stripcom() function in netstart and install.sub. --- diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index 0c47f9f0a99..6c7cce88910 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,5 +1,5 @@ #!/bin/ksh -# $OpenBSD: install.sub,v 1.991 2017/04/07 21:00:42 rpe Exp $ +# $OpenBSD: install.sub,v 1.992 2017/04/07 21:44:07 rpe Exp $ # # Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback # Copyright (c) 2015, Robert Peichaer @@ -189,8 +189,9 @@ show_cols() { rm -rf -- $_cdir } -# Echo file $1 to stdout. Skip comment lines and delete everything after the -# first '#' from other lines. +# Echo file $1 to stdout. Skip comment lines and delete everything +# after the first '#' from other lines. Strip leading and trailing +# whitespace if IFS is set. stripcom () { local _l diff --git a/etc/netstart b/etc/netstart index 97a9125c13b..b57be3c624d 100644 --- a/etc/netstart +++ b/etc/netstart @@ -1,12 +1,13 @@ #!/bin/sh - # -# $OpenBSD: netstart,v 1.172 2016/12/06 14:01:43 mpi Exp $ +# $OpenBSD: netstart,v 1.173 2017/04/07 21:44:07 rpe Exp $ # Turn off Strict Bourne shell mode. set +o sh -# Strip comment lines from a file. -# Strip leading and trailing whitespace if IFS is set. +# Echo file $1 to stdout. Skip comment lines and delete everything +# after the first '#' from other lines. Strip leading and trailing +# whitespace if IFS is set. # Usage: stripcom /path/to/file stripcom() { local _file=$1 _line