From f665d68d0423089a43747e22cc474e2a4dd5adff Mon Sep 17 00:00:00 2001 From: Garrett Wollman Date: Tue, 11 Oct 1994 02:13:21 +0000 Subject: [PATCH] Make `id' and `groups' somewhat faster and less cpu-intensive :-) Really! --- usr.bin/id/groups.sh | 2 +- usr.bin/id/whoami.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/id/groups.sh b/usr.bin/id/groups.sh index e29ed901bc1..734fcb21bc9 100644 --- a/usr.bin/id/groups.sh +++ b/usr.bin/id/groups.sh @@ -1,4 +1,5 @@ #!/bin/sh - +exec id -Gn $* # # Copyright (c) 1991, 1993 # The Regents of the University of California. All rights reserved. @@ -34,4 +35,3 @@ # @(#)groups.sh 8.1 (Berkeley) 6/6/93 # -id -Gn $* diff --git a/usr.bin/id/whoami.sh b/usr.bin/id/whoami.sh index 372b7da93a6..a5b9887f619 100644 --- a/usr.bin/id/whoami.sh +++ b/usr.bin/id/whoami.sh @@ -1,4 +1,5 @@ #!/bin/sh - +exec id -un # # Copyright (c) 1991, 1993 # The Regents of the University of California. All rights reserved. @@ -34,4 +35,3 @@ # @(#)whoami.sh 8.1 (Berkeley) 6/6/93 # -id -un