rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
* Re: `{prog args} versus `(prog args)
@ 1993-12-30  3:42 Paul Haahr
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Haahr @ 1993-12-30  3:42 UTC (permalink / raw)
  To: drazen; +Cc: rc

> Is there a "real" difference between
>     ; x = `{prog args ...}      
>and
>     ; x = `(prog args ...)     

yes.  `() can contain only words, not things like redirections and pipes,
whereas `{} can contain any rc commands.  that `() works is just a happy
accident of the orthogonality of rc.

paul



^ permalink raw reply	[flat|nested] 2+ messages in thread
* `{prog args} versus `(prog args)
@ 1993-12-30  2:34 drazen
  0 siblings, 0 replies; 2+ messages in thread
From: drazen @ 1993-12-30  2:34 UTC (permalink / raw)
  To: rc




          Happy New Year to everyone!

 Is there a "real" difference between
     ; x = `{prog args ...}      
and
     ; x = `(prog args ...)     

 The only difference in the text of the commands is
   braces versus parenthesis.
 Both conform to the syntax, and I cannot get them to produce 
   different results.
 Does anyone have any opinions when one is preferable to another?

  Drazen



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1993-12-30  4:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1993-12-30  3:42 `{prog args} versus `(prog args) Paul Haahr
  -- strict thread matches above, loose matches on Subject: below --
1993-12-30  2:34 drazen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).