rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
* Re: bug?
@ 2001-05-28 17:20 Byron Rakitzis
  0 siblings, 0 replies; 4+ messages in thread
From: Byron Rakitzis @ 2001-05-28 17:20 UTC (permalink / raw)
  To: rc, russell.davies

Whether it's a bug depends on your expectations -- but redirections
happen in a subshell and you'd have to know that.

You could do:

exec > /dev/null
cd e
exec > /dev/tty


^ permalink raw reply	[flat|nested] 4+ messages in thread
* bug?
@ 2001-05-28  8:47 Russell Davies
  2001-05-28 10:55 ` bug? Carlo Strozzi
  2001-05-28 15:20 ` bug? Paul Haahr
  0 siblings, 2 replies; 4+ messages in thread
From: Russell Davies @ 2001-05-28  8:47 UTC (permalink / raw)
  To: rc


; mkdir $HOME/e
; cdpath=$HOME
; cd /
; cd e
/home/blah/e

ok, all is well. Suppose now I want to suppress the output of the cd e.

; cd /
; cd e >/dev/null
; pwd
/

huh? I haven't had time to dig too deeply but if someone else has looked
at it before, I won't bother.

r.


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

end of thread, other threads:[~2001-05-28 19:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-28 17:20 bug? Byron Rakitzis
  -- strict thread matches above, loose matches on Subject: below --
2001-05-28  8:47 bug? Russell Davies
2001-05-28 10:55 ` bug? Carlo Strozzi
2001-05-28 15:20 ` bug? Paul Haahr

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