Gentoo Archives: gentoo-user

From: "Bo Ørsted Andresen" <bo.andresen@××××.dk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] SSH hosed, only rubble remains
Date: Tue, 30 May 2006 04:38:56
Message-Id: 200605300626.25517.bo.andresen@zlin.dk
In Reply to: Re: [gentoo-user] SSH hosed, only rubble remains by Kevin O'Gorman
1 Sunday 28 May 2006 18:21 skrev Kevin O'Gorman:
2 > if [ "x" != "x$PS1" ] ; then
3 >     SHELL_LOGIN=1
4 > else
5 >     # Probably scp; empty string is false
6 >     SHELL_LOGIN=
7 > fi
8 >
9 > if [ -n "$SHELL_LOGIN" ]
10 [...]
11
12 IMHO it seems kind of lame to use one shell variable to create another instead
13 of just using the one that is already there...
14
15 Also shouldn't:
16
17 if [ "x" != "x$PS1" ]
18
19 be equivalent to:
20
21 if [ -z $PS1 ]
22
23 ?
24
25 --
26 Bo Andresen

Replies

Subject Author
Re: [gentoo-user] SSH hosed, only rubble remains "Bo Ørsted Andresen" <bo.andresen@××××.dk>
Re: [gentoo-user] SSH hosed, only rubble remains Iain Buchanan <iaindb@××××××××××××.au>