9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] rc script question
@ 2013-02-27 15:41 Steve Simon
  2013-02-27 15:53 ` Charles Forsyth
  2013-02-27 16:06 ` dexen deVries
  0 siblings, 2 replies; 4+ messages in thread
From: Steve Simon @ 2013-02-27 15:41 UTC (permalink / raw)
  To: 9fans

Hi,

rc is not working how I expect it to.

This works fine
	echo a b c | rc -c 'a=`{read}; echo @ $a(2-) @'
	@ b c @

This i did not expect
	echo a b c | rc -c 'echo @ $(2-) @'
	@ @

Perhaps I need some expectation managment?

-Steve



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

end of thread, other threads:[~2013-03-01 10:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-27 15:41 [9fans] rc script question Steve Simon
2013-02-27 15:53 ` Charles Forsyth
2013-02-27 16:06 ` dexen deVries
2013-03-01 10:28   ` Yaroslav

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).