bug-coreutils
[Top][All Lists]
Advanced

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

Re: is hard-coding the group name, "tty", portable enough for who -a?


From: Matthew Woehlke
Subject: Re: is hard-coding the group name, "tty", portable enough for who -a?
Date: Wed, 09 Jul 2008 17:34:00 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.14) Gecko/20080501 Fedora/2.0.0.14-1.fc8 Thunderbird/2.0.0.14 Mnenhy/0.7.5.0

Jim Meyering wrote:
If anyone can find a system on which this prints
something other than "tty", please let us know:

  stat --format %G $(tty)

I get my primary GID on AIX 4.3 and Irix 6.5, and "terminal" on OSF1 5.1. The OSS I have access to probably isn't a "reasonable porting target" :-), and the other systems I can think of that I could test are BSD-ish, Linux, HP-UX, or Solaris, which you tested already.

--
Matthew
PIE INCOMING!!!





reply via email to

[Prev in Thread] Current Thread [Next in Thread]