Hard links vs. Soft links

Marc Milgram milgr at teapot.prime.COM
Sat Aug 25 07:07:00 AEST 1990


In article <2866 at wyse.wyse.com>, bob at wyse.wyse.com (Bob McGowen x4312
dept208) writes:
|>As for using aliases for this function, only csh and ksh (if you have it)
|>would be able to do this.  By using links pointing to the one file and
|>letting the program determine the function based on the name used to
|>call it, sh users can also have this ability.  The particular system
|>in the original post has this ability.
|>
|>My system, ls only recognizes the lc alternate name, so I must use
|>either aliases or a shell script to get the function.
|>
|>For sh users, the following has worked for me:
|>	[code deleted]
|>	esac
|>Bob McGowan  (standard disclaimer, these are my own ...)
|>Product Support, Wyse Technology, San Jose, CA
|>..!uunet!wyse!bob
|>bob at wyse.com
                                                          
aliases work in the bourne shell (at least all of the /bin/sh's that I
have used.

For example:

ls()
{
  /bin/ls -CFb $@
}

is the same as aliases ls '/bin/ls -CFb \!*' #csh notation

This lets me make /bin/sh survivable on strictly SV3.2
systems for me.

Marc Milgram
milgr at teapot.prime.com



More information about the Comp.unix.wizards mailing list