Path: utzoo!attcan!uunet!munnari.oz.au!uhccux!ames!elroy.jpl.nasa.gov!usc!apple!bionet!agate!e260-2d!labb-2ae From: labb-2ae@e260-2d.berkeley.edu (Joe C.) Newsgroups: comp.sys.amiga Subject: Re: compress 4.0 for the amiga Message-ID: <1990Nov10.231526.29334@agate.berkeley.edu> Date: 10 Nov 90 23:15:26 GMT References: <90312.151522UH2@psuvm.psu.edu> Sender: usenet@agate.berkeley.edu (USENET Administrator) Organization: University of California, Berkeley Lines: 46 In article joseph@valnet.UUCP (Joseph P. Hillenburg) writes: >UH2@psuvm.psu.edu (Lee Sailer) writes: > >> While clearly a kludge, you could write a s: script called zcat that >> renamed compress, executed it, and then renamed it again. >> Let's call this a mushy link, perhaps 8-) > >What about using aliases, etc? Just have a line in your s:shell-startup >that is like: > >alias zcat c:compress > > >Joseph Hillenburg, Secretary, Bloomington Amiga Users Group (BAUG) >joseph@valnet.UUCP ...!iuvax!valnet!joseph >"Only Apple could slow down a 68000 chip." -Computer Shopper In article joseph@valnet.UUCP (Joseph P. Hillenburg) writes: >UH2@psuvm.psu.edu (Lee Sailer) writes: > >> While clearly a kludge, you could write a s: script called zcat that >> renamed compress, executed it, and then renamed it again. >> Let's call this a mushy link, perhaps 8-) > >What about using aliases, etc? Just have a line in your s:shell-startup >that is like: > >alias zcat c:compress > Writing aliases doesn't work. When the shell sees an alias, it replaces the alias with the apropriate substution and executes that replaced line. So as far as compress is concerned, it is always invoked as "compress blah blah .... " Compress checks the command line via argv and argc. It must find "zcat", "uncompress", or "compress" at argv[0]. However there may be shells that feed the actual user-entered command line to a program, though I don't think such a shell would be useful. What we *really* need is something like the 'ln' command in UNIX. -jc --- labb-2ae@web.berkeley.edu