[98586] in RedHat Linux List

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

Re: A script problem

daemon@ATHENA.MIT.EDU (Jan Carlson)
Mon Nov 9 19:25:05 1998

Date: Mon, 09 Nov 1998 19:12:47 -0500
From: Jan Carlson <janc@iname.com>
To: redhat-list@redhat.com
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

"Anthony E. Greene" wrote:

> At 17:05 1998-11-09 +0100, Zoki wrote:
> >*** I couldn't sit still so I went on messing around with the script. At
> >this point it works, but I still would like to get feedback if it's done
> >according to the rules. This is the solution I found:
> >
> >********* The script *********************
> >
> >#!/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.

>
>
>  Tony
> --
> Anthony E. Greene <agreene@pobox.com>
> Homepage & PGPKey: <http://www.pobox.com/~agreene/>
>
> --
>   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.

--

Jan Carlson
janc@iname.com   Scarborough, Ontario, Canada
Mailed with Netscape 4.5 on Red Hat Linux 5.2





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