On Tue, Oct 08, 2002 at 04:46:40PM -0300, John Lenton wrote: > On Tue, Oct 08, 2002 at 08:57:06PM +0200, Beat Bolli wrote: > > > > When starting X, the hostname version string is displayed. This comes from > > the Xauth setup in startx. The Debian version of hostname outputs its version > > string to stderr. The following patch suppresses this error: > > > > --- startx.orig 2002-10-04 22:49:05.000000000 +0200 > > +++ startx 2002-10-08 20:27:31.000000000 +0200 > > @@ -116,7 +116,7 @@ > > # set up default Xauth info for this machine > > case `uname` in > > Linux*) > > - if [ -z "`hostname --version | grep GNU`" ]; then > > + if [ -z "`hostname --version 2>/dev/null | grep GNU`" ]; then > > actually no, what happens is that it outputs its version to > STDERR and nothing at all to STDOUT, so the right thing (apart > from fixing hostname, which would be better IMHO) would be to do > > hostname --version 2>&1 | grep GNU > > else stdin will be empty and it'll never grep.
Well, the question is if Debian has the GNU hostname command. Since the grep doesn't match, I deduced that I don't have GNU hostname, based on the assumption that the person who coded this knew that GNU hostname would output its version string on stdout... Beat Bolli -- mail: `echo '<[EMAIL PROTECTED]>' | sed -e 's/[A-S]//g'` pgp: 0x506A903A; 49D5 794A EA77 F907 764F D89E 304B 93CF 506A 903A icbm: 47° 02' 43.0" N, 07° 16' 17.5" E (WGS84) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]