[BACK]Return to netstart CVS log [TXT][DIR] Up to [local] / src / etc

Diff for /src/etc/netstart between version 1.107 and 1.108

version 1.107, 2005/10/04 12:50:15 version 1.108, 2005/10/12 13:11:55
Line 5 
Line 5 
 # Strip comments (and leading/trailing whitespace if IFS is set)  # Strip comments (and leading/trailing whitespace if IFS is set)
 # from a file and spew to stdout  # from a file and spew to stdout
 stripcom() {  stripcom() {
         local _file="$1"          local _l
         local _line          while read _l; do
                   [[ -n ${_l%%#*} ]] && echo $_l
         {          done<$1
                 while read _line ; do  
                         _line=${_line%%#*}              # strip comments  
                         test -z "$_line" && continue  
                         echo $_line  
                 done  
         } < $_file  
 }  }
   
 # Returns true if $1 contains only alphanumerics  # Returns true if $1 contains only alphanumerics

Legend:
Removed from v.1.107  
changed lines
  Added in v.1.108