Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!rex!samsung!sdd.hp.com!uakari.primate.wisc.edu!aplcen!haven!adm!news From: anamaria%saffron.wpd@sgi.com (Ana Maria De Alvare') Newsgroups: comp.unix.wizards Subject: Re: cd problem Message-ID: <24091@adm.BRL.MIL> Date: 9 Aug 90 16:35:54 GMT Sender: news@adm.BRL.MIL Lines: 37 To answer your mail: Date: Wed, 8 Aug 90 12:14:46 EDT From: "Ian! D. Allen [CGL]" Message-Id: <9008081614.AA11112@watcgl.waterloo.edu> To: anamaria%saffron.wpd@sgi.com Subject: Re: cd problem And how do you know that you have *permission* to cd into the directory? Knowing that it is a directory isn't enough. --- To know if you have access use the expression flags in the CSH manual pages. For example to know if you have read access and the directory exist do: if (-d directoryname) then if (-r directoryname) then ls directoryname else echo no read access else echo directory does not exist endif I hope this helps. Ana Maria ------------------------------------------------------------------------------- Ana Maria De Alvare' MTS Secure IRIX Silicon Graphics, Inc. anamaria@sgi.COM {decwrl,sun}!sgi!whizzer!saffron!anamaria 415-335-1549 -------------------------------------------------------------------------------