Is this on z/OS?  What version?

Lizette

> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
> Behalf Of Peter
> Sent: Tuesday, July 05, 2016 8:09 AM
> To: IBM-MAIN@LISTSERV.UA.EDU
> 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 <p...@gmx.ch> 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 lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to