Hi Liz, Initially we had
etc === > $SYSNAME/etc but i unlinked the etc and now i want to get back to the above structure On Tue, Jul 5, 2016 at 8:44 PM, Lizette Koehler <[email protected]> wrote: > 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 > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
