HP9000-L Archives

May 2001

HP9000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Richard Gambrell <[log in to unmask]>
Reply To:
Richard Gambrell <[log in to unmask]>
Date:
Mon, 21 May 2001 21:16:30 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (49 lines)
Gavin Scott wrote:
>
> Mark replied to Richard's list:
> > > Ask, and you shall receive.  My Unix commands cheat sheet.:-)
>
> > > export <varname> = 'value'
> > >                 = set 'varname' variable to 'value'
> >
> > Actually, export makes a variable an environment variable that is
> > visible to
> > other processes in your process tree. The assignment of a value to a
> > variable is done by the = operator (or by other methods in some shells).
> > Export does NOT explicitly make an assignment.
>
> The export+assignment shown in Richard's list is a Korn shell feature I
> believe.  The ordinary Bourne shell does not allow combining the assignment
> with the 'export', which will eventually come as a surprise to a user who
> ordinarily uses the Korn/Posix shell and who tries to run a script under a
> user like root that may default to a more basic shell.
>

Yes. It is a ksh feature and in the posix shell.  On hpux 10 (I believe)
and later, the posix shell should be assigned to root - if not, you risk
a script failing.  IIRC, HPUX, as of 10, stopped supporting the Bourne
"features" in HP scripts and requires the use of the posix shell.

Richard
--
Richard L Gambrell
Director of Computing Systems and Networks
Information Technology Division
University of Tennessee at Chattanooga
fax: 423-755-4150
office: 423-755-5316
mobile: 423-432-5122
email: [log in to unmask]

scripts they supply.

--
Richard L Gambrell
Director of Computing Systems and Networks
Information Technology Division
University of Tennessee at Chattanooga
fax: 423-755-4150
office: 423-755-5316
mobile: 423-432-5122
email: [log in to unmask]

ATOM RSS1 RSS2