cd problem
Ana Maria De Alvare'
anamaria%saffron.wpd at sgi.com
Fri Aug 10 02:35:54 AEST 1990
To answer your mail:
Date: Wed, 8 Aug 90 12:14:46 EDT
From: "Ian! D. Allen [CGL]" <idallen at watcgl.waterloo.edu>
Message-Id: <9008081614.AA11112 at watcgl.waterloo.edu>
To: anamaria%saffron.wpd at 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 at sgi.COM {decwrl,sun}!sgi!whizzer!saffron!anamaria 415-335-1549
-------------------------------------------------------------------------------
More information about the Comp.unix.wizards
mailing list