How to test for soft links ??
Dan Watts
dwatts at ki.UUCP
Sat Dec 1 02:57:57 AEST 1990
On the IBM RS/6000, is there a way to test to see if a file is a soft link?
Under BSD, the "-h" option to test does this. For sysV, the option is "-l".
I'm running AIX 3.1 and the man page for test doesn't show anything. Is it
possible that they left this ability out?? I've got a few shell scripts that
need to know whether the file is a _real_ file or just a soft link. I guess
I could write a little C program to figure out the file type and return 0
or 1, but I'd rather just use test if at all possible.
--
################## Skinny Dippers Have Less Stress ##################
# CompuServe: >INTERNET:uunet.UU.NET!ki!dwatts Dan Watts #
# UUCP : ...!{uunet | wgc386}!ki!dwatts Ki Research, Inc. #
############### New Dimensions In Network Connectivity ##############
More information about the Comp.unix.aix
mailing list