On 8/26/06, Martin Bähr <[EMAIL PROTECTED]> wrote: > if a program produces output that does not end with a newline, then fish > overwrites that output. > > > echo -en "one\ntwo" > one > > > > expected output is: > one > two> > or > one > two > > > > fish should never obscure the output of any program, even if it is > conceivably a bad idea to not end output with a newline...
Agreed. This is a long-kown issue. Problem is, if fish always added a newline before writing the prompt, a lot of space would be wasted. So the only alternative right now is to have the prompt at the 'wrong place' if the command failed to add the trailing newline. Which, while still bad, would arguably be better. I'll probably implement that behaviour sooner or later. Main reason why I still haven't is that I have a pipe dream about buffering the screen output of all commands, and thus being able to detect missing ending newlines in all situations, as well as providing various other much cooler features. But implementing that is non-trivial, and will probably not happen any time soon, so there is no real reason to get the former behavior. > > greetings, martin. > -- > cooperative communication with sTeam - caudium, pike, roxen and unix > offering: programming, training and administration - anywhere in the world > -- > pike programmer travelling and working in europe open-steam.org > unix system- bahai.or.at iaeste.(tuwien.ac|or).at > administrator (caudium|gotpike).org is.schon.org > Martin Bähr http://www.iaeste.or.at/~mbaehr/ > -- Axel ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Fish-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fish-users
