Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!uunet!ki!dwatts From: dwatts@ki.UUCP (Dan Watts) Newsgroups: comp.unix.aix Subject: How to test for soft links ?? Message-ID: <898@ki.UUCP> Date: 30 Nov 90 15:57:57 GMT Organization: Ki Research, Inc. Derry NH Lines: 12 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 ##############