9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] rc bug?
@ 2009-11-26 16:58 roger peppe
  0 siblings, 0 replies; 2+ messages in thread
From: roger peppe @ 2009-11-26 16:58 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

this seems to be a good day for me to be finding old bugs.

i don't think these two bits of rc should behave any differently:

% rc -c 'echo hello > /fd/4' <>[4] /dev/cons
hello
% {echo hello > /fd/4} <>[4] /dev/cons
/fd/4: rc: can't open: '/fd/4' inappropriate use of fd
%

as it happens, the actual file being opened in the second
instance is '#c/cons' (the original rc's stdin).



^ permalink raw reply	[flat|nested] 2+ messages in thread
[parent not found: <<df49a7370911260858w344a5596lb0a030b19bd50a90@mail.gmail.com>]

end of thread, other threads:[~2009-11-27  3:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-26 16:58 [9fans] rc bug? roger peppe
     [not found] <<df49a7370911260858w344a5596lb0a030b19bd50a90@mail.gmail.com>
2009-11-27  3:19 ` erik quanstrom

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