[98692] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: A script problem

daemon@ATHENA.MIT.EDU (Thomas Ribbrock \(Design/DEG\))
Tue Nov 10 05:41:33 1998

Date: Tue, 10 Nov 1998 10:40:04 +0000
From: "Thomas Ribbrock \(Design/DEG\)" <argathin@iname.com>
To: Jan Carlson <redhat-list@redhat.com>
Mail-Followup-To: Jan Carlson <redhat-list@redhat.com>
In-Reply-To: <199811100206.VAA01308@smtp1.erols.com>; from Charles Galpin on Mon, Nov 09, 1998 at 09:03:51PM -0500
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

Charles Galpin writes:
[...] 
> This line did absolutely nothing
> 
> >if  [ "$USER" = "zokiphoto" ]; then
> 
> but $USER saved the day.
> 
> '/usr/bin/id -un'=$USER would have assigned the poorly named variable 
> '/usr/bin/id -un' the current user, and perhaps something like
> 
>  if  [ ${'/usr/bin/id -un'} = "zokiphoto" ]; then
> 
> might have worked

For completness sake:

if  [ "${'/usr/bin/id -un'}" = "zokiphoto" ]; then
      ^                    ^
might have worked... ;-)

Thomas
-- 
             "Look, Ma, no obsolete quotes and plain text only!"

     Thomas Ribbrock | http://www.bigfoot.com/~kaytan | ICQ#: 15839919
   "You have to live on the edge of reality - to make your dreams come true!"


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post