[98624] in RedHat Linux List

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

RE: A script problem

daemon@ATHENA.MIT.EDU (Charles Galpin)
Mon Nov 9 21:10:29 1998

Date: Mon, 9 Nov 1998 20:58:53 -0500
From: Charles Galpin <cgalpin@lighthouse-software.com>
To: Jan Carlson <redhat-list@redhat.com>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

Zoki,

I'm sure you understand know, but just for everyone's sake, I want to point 
out that what you did worked because as Tony said, $USER already contained 
the user name.

'/usr/bin/id -un'=USER

if  [ "$USER" = "zokiphoto" ]; then

>> >#!/bin/sh
>> >
>> >'/usr/bin/id -un'=USER
>>
>> Shoudn't this line read:
>>
>>         USER='/usr/bin/id -un'
>
>No, because USER already has this value.
>Bash maintains it for you.



-- Charles Galpin   <cgalpin@lighthouse-software.com>


-- 
  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