home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!cs.utexas.edu!wotan.compaq.com!moxie!texsun!digi!ajahnv!alfredo
- From: alfredo@ajahnv.lonestar.org (Alfredo Jahn V)
- Newsgroups: comp.sys.amiga.applications
- Subject: "ls" command that displays file links
- Message-ID: <alfredo.04cc@ajahnv.lonestar.org>
- Date: 9 Jan 93 16:27:16 GMT
- Organization: Amiga 2000 (Home System)
- Lines: 35
-
- I am currently using "ls v4.0k" by Kim E. DeVaughn. The only problem
- is that file links show up the same as the original file. Is there
- a Unix-like "ls" command that shows links, like, for example:
-
- -----rwxd 6 2500 Jan 9 00:57 original_file
- -----rwxd 6 2500 Jan 9 00:57 link_to_file -> orignal_file
-
- Another thing, with "ls v4.0k", is if I have two files, one the original
- (called test1) and the other the link (called test2) and I issue a
- command like:
-
- [HardDisk:S]: ls -l test*
- -----rwxd 6 2500 Jan 9 00:57 test1
- -----rwxd 6 2500 Jan 9 00:57 test1
-
- Note files show up with the same name...
-
- But if I do:
-
- [HardDisk:S]: ls -l | grep test
- -----rwxd 6 2500 Jan 9 00:57 test1
- -----rwxd 6 2500 Jan 9 11:17 test2
-
- The two files each have their correct names...
-
- NOTE: I use the SKsh (korn shell) so I can do these Unix like things.
- Can anyone explain why this works like this? The AmigaDos "list"
- command seems to work (I just don't like the way "list" displays
- its information. I've been told that other PD "ls" commands behave
- the same way. Comments? Suggestions for a new "ls" I can use? Thanks
- in advance.
-
- -- //
- Alfredo Jahn V alfredo@ajahnv.lonestar.org \\ //
- Dallas TX 75206 voice: (214) 821-5481 \X/
-