Re: [expert] bash is wiping out the last "line" that doesn't have a newline
> [james@jamlin Winamp]$ echo -n "I can see this line in Mandrake 7.2 > but not 8.0" > I can see this line in Mandrake 7.2 but not 8.0[james@jamlin Winamp]$ > > >>> Works in 8.1 .. Don't have an 8.0 box to test it on. Perhaps >>> upgrading bash to the 8.1 version, bash-2.05-10mdk might help. More correctly, you can see the line, followed immediately by your bash prompt, until you type the next character. At that point bash erases the line and reprints your prompt along the character you just typed. At least that's the behavior on my machine. A really *ugly* work-around is to embed a newline at the beginning of your prompt string by using \n. It's ugly because under normal circumstances you get an extra empty line between prompts or between the last line of output and your prompt. /Pen Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] bash is wiping out the last "line" that doesn't have a newline
tested your line in 8.1 [james@jamlin Winamp]$ echo -n "I can see this line in Mandrake 7.2 but not 8.0" I can see this line in Mandrake 7.2 but not 8.0[james@jamlin Winamp]$ Works in 8.1 .. Don't have an 8.0 box to test it on. Perhaps upgrading bash to the 8.1 version, bash-2.05-10mdk might help. James On Sun, 13 Jan 2002 18:21:20 +1100 pesarif <[EMAIL PROTECTED]> wrote: > > Hello, > > Has anyone noticed this?: > > In Mandrake 7.2, > [root@tux350 /root]# echo -n I can see this line in Mandrake 7.2 but not 8.0 > I can see this line in Mandrake 7.2 but not 8.0[root@tux350 /root]# > > In Mandrake 8.0, > [root@tux350 /root]# echo -n I can see this line in Mandrake 7.2 but not 8.0 > [root@tux350 /root]# > > If the last "line" of output isn't terminated by a newline, then the bash > prompt will get rid of it in Mandrake 8.0. > > I don't like this because some of my programs depend on bash _not_ "killing" > the last line of output. > > Does anyone know how I can get the 7.2 behaviour back? > Some setting in bash? > > Thanks in advance, > pesarif > > > Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
[expert] bash is wiping out the last "line" that doesn't have a newline
Hello, Has anyone noticed this?: In Mandrake 7.2, [root@tux350 /root]# echo -n I can see this line in Mandrake 7.2 but not 8.0 I can see this line in Mandrake 7.2 but not 8.0[root@tux350 /root]# In Mandrake 8.0, [root@tux350 /root]# echo -n I can see this line in Mandrake 7.2 but not 8.0 [root@tux350 /root]# If the last "line" of output isn't terminated by a newline, then the bash prompt will get rid of it in Mandrake 8.0. I don't like this because some of my programs depend on bash _not_ "killing" the last line of output. Does anyone know how I can get the 7.2 behaviour back? Some setting in bash? Thanks in advance, pesarif Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com