Path: utzoo!utgpu!water!watmath!clyde!att!rutgers!ucsd!nosc!helios.ee.lbl.gov!lll-tis!ames!amdcad!sun!pitstop!sundc!seismo!uunet!mcvax!ukc!cs.tcd.ie!csvax1!ecarroll
From: ecarroll@cs.tcd.ie (Eddy Carroll)
Newsgroups: comp.sys.amiga
Subject: Re: Yea, but can an Amiga Shell do this....
Message-ID: <8375@cs.tcd.ie>
Date: 18 Aug 88 03:02:11 GMT
References: <2213@ihlpm.ATT.COM> <5660004@hpcvca.HP.COM>
Organization: Computer Science Department, Trinity College Dublin
Lines: 41

In article <5660004@hpcvca.HP.COM>, charles@hpcvca.HP.COM (Charles Brown) writes:
>> I havent seen a shell (yet) that will allow the 'backtick'. But it should be
>> able to be done with pipes (or was that mirrors.. Hmm..). Of course a pipe
>> device is included FREE with AmigaDOS V1.3 - at a store near you RSN.
>>>		> where ls
>>>		> /bin/ls
>>>		> file /bin/ls
>>>or I could type:
>>>		> file `where ls`
>>  1> where >pipe:1 ls
>>  1> file >>	This space would have been	|	Mike Davis
>> Dan "Sneakers" Schein     {alegra|amiga|rutgers|uunet}!cbmvax!heimat!sneakers
> 
> This is not the same.  In the case of
> 	file `where ls`
> file is getting its arguments from the command line.  In the case
> 	file  file must accept its arguments from stdin.  Few programs behave the
> same way when given inputs in such different ways.  Backticks are very
> difficult to fake.
> --
> Charles Brown
> 	Not representing Hewlett-Packard.

You can do it with the Dillon/Drew shell though (at least in recent versions).
To get the effect of:

    Command1 `Command2 Args`

you would use:

    Command2 Args | input args; Command1 $args

Which gives you all the functionality without too much extra typing.
 
-----------------------------------------------------------------------------
Eddy Carroll                    "You haven't lived until you've died in MUD!"
Email: ecarroll@cs.tcd.ie
Compunet: ALLANON                         ----* Genuine MUD wizard
-----------------------------------------------------------------------------