Print this page
XXX Remove nawk(1)

@@ -51,23 +51,23 @@
 #
 # If there are non-global UFS filesystems with quotas, check and enable them.
 #
 
 # vlist is the non-global filesystems in vfstab requesting quotas
-vlist=`/usr/bin/nawk '$1 !~ /^(#|-)/ && $4 == "ufs" {
+vlist=`/usr/xpg4/bin/awk '$1 !~ /^(#|-)/ && $4 == "ufs" {
         if (match($7, "(^|,)(quota|rq)(,|$)") != 0 &&
             match($7, "(^|,)global(,|$)") == 0) print $1; }' /etc/vfstab`
 
 if [ -n "$vlist" ]; then
         # mlist is the filesystems in mnttab that are ufs, mounted rw,
         # and without quotas turned on
-        mlist=`/usr/sbin/mount -p | /usr/bin/nawk '$4 == "ufs" {
+        mlist=`/usr/sbin/mount -p | /usr/xpg4/bin/awk '$4 == "ufs" {
                 if (match($7, "(^|,)ro(,|$)") == 0) print $1; }'`
 
         # qlist is the intersection of vlist and mlist
         qlist=`echo "$vlist\n-\n$mlist" | \
-                /usr/bin/nawk '{if ($1 == "-") { mlist = 1; }
+                /usr/xpg4/bin/awk '{if ($1 == "-") { mlist = 1; }
                         else if (mlist == 0) { vlist[$1] = 1; }
                         else if (vlist[$1]) { print $1; } }'`
 
         #
         # Just check and enable the non-global UFS file systems with quotas