On Mon Jul 19 08:16:56 EDT 2010, rogpe...@gmail.com wrote: > that's because the cd function calls awd which prints some terminal > control codes to change the window's idea of the current > working directory. IMHO it should write to stderr, > but it doesn't.
this is for p9p. plan 9 doesn't have this problem. it uses device files instead. but being p9p, it has to get along with other unix programs that do send their terminal control stuff to fd 1. there's no sense fighting it. and the same problem would apply to fd 2, only less often. plan 9 implements a correct solution. it's unclear what to do in p9p. perhaps a partial solution (use a 3d file descriptor for p9p programs) might be worth it, even if it does result in less consistency and having to deal with 2 ways of getting terminal information. - erik