[98496] in RedHat Linux List
Re: A script problem
daemon@ATHENA.MIT.EDU (Thomas Ribbrock \(Design/DEG\))
Mon Nov 9 11:58:22 1998
Date: Mon, 9 Nov 1998 16:03:49 +0000
From: "Thomas Ribbrock \(Design/DEG\)" <argathin@iname.com>
To: Red Hat Users List <redhat-list@redhat.com>
Mail-Followup-To: Red Hat Users List <redhat-list@redhat.com>
In-Reply-To: <Pine.LNX.4.05.9811091555420.8047-100000@winbuster.magic.fr>; from Zoki on Mon, Nov 09, 1998 at 04:03:19PM +0100
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
Zoki writes:
>
[Script Problem]
>
> ********* The script *********************
>
> #!/bin/sh
>
> if [ '/usr/bin/id -un' = "zokiphoto" ]; then
Try this instead:
if [ "'/usr/bin/id -un'" = "zokiphoto" ]; then
(and similar for the elif line)
I'm not 100% sure whether the syntax is correct, but I *am* sure that the
quotes matter when comparing strings and that they have to match as well.
HTH,
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.