Looks good to me.  When I use a symbolically linked path in z/OS Unix, I see a 
concatenated name.

For example for /etc  I get /SYS1etc

Lizette


> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:[email protected]] On
> Behalf Of Peter
> Sent: Tuesday, July 05, 2016 8:09 AM
> To: [email protected]
> Subject: Re: Symlinks with $SYSNAME variable
> 
> Hi,
> 
> I issued
> 
> ln --s /\$SYSNAME/etc /MaintP21/etc   From /Maintp21 but it gave me a
> different result
> 
> etc == > \$SYSNAMEetc
> 
> so i was expecting
> 
> etc === > $SYSNAME/etc
> 
> Could you please point with the correct syntax.
> 
> On Tue, Jul 5, 2016 at 8:04 PM, Peter Hunkeler <[email protected]> wrote:
> 
> >
> >
> >
> > >When I run ln -s command but it is not taking $SYSNAME but it is
> > >taking
> > SYSTEM/etc
> >
> >
> >
> > The $ is a meta character to the shell; it asks the shell to replace
> > the variable following the $ with the valur of the variable. If you
> > want to keep the $ as $, you need to escape it by preceeding it with he
> backslash.
> >
> >
> > ls -s  /\$SYSNAME/etc /MaintP21/etc
> > --
> > Peter Hunkeler
> >

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to