Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc Use standard variable "$0" for the whole line instead of...



details:   https://anonhg.NetBSD.org/src/rev/3ed4cd248a16
branches:  trunk
changeset: 474820:3ed4cd248a16
user:      hubertf <hubertf%NetBSD.org@localhost>
date:      Thu Jul 22 00:47:50 1999 +0000

description:
Use standard variable "$0" for the whole line instead of the non-standard,
undocumented "$LINE".

Submitted in PR 7041 by Greg A. Woods <woods%weird.com@localhost>

diffstat:

 etc/security |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 1dd5be68da38 -r 3ed4cd248a16 etc/security
--- a/etc/security      Thu Jul 22 00:18:19 1999 +0000
+++ b/etc/security      Thu Jul 22 00:47:50 1999 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: security,v 1.38 1999/04/23 08:20:28 kleink Exp $
+#      $NetBSD: security,v 1.39 1999/07/22 00:47:50 hubertf Exp $
 #      from: @(#)security      8.1 (Berkeley) 6/9/93
 #
 
@@ -57,7 +57,7 @@
        awk -v "len=$max_loginlen" '
        BEGIN {
                while ( getline < "/etc/shells" > 0 ) {
-                       if ($LINE ~ /^\#/ || $LINE ~ /^$/ )
+                       if ($0 ~ /^\#/ || $0 ~ /^$/ )
                                continue;
                        shells[$1]++;
                }
@@ -427,7 +427,7 @@
 if checkyesno check_nfs && [ -f /etc/exports ]; then
        awk '{
                # ignore comments and blank lines
-               if ($LINE ~ /^\#/ || $LINE ~ /^$/ )
+               if ($0 ~ /^\#/ || $0 ~ /^$/ )
                        next;
 
                readonly = 0;



Home | Main Index | Thread Index | Old Index