bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: current input line lost on ^Z


From: Chet Ramey
Subject: Re: current input line lost on ^Z
Date: Thu, 08 Jun 2006 12:33:53 -0400
User-agent: Thunderbird 1.5.0.4 (Macintosh/20060530)

Dan Jacobson wrote:
> Perhaps bad?
> $ cat > p
> bbbbbbbbbb
> ccccccc^Z
> $ something_else
> $ fg
> zzzzzzzzzzz
> ^D
> $ cat pr
> bbbbbbbbbb
> zzzzzzzzzzz
> 
> "I was not finished composing line ccccccc when I had to do
> something_else. Now I have to remember what I was typing to type line
> ccccccc all over again, and it might not even be left on my screen for
> me to copy."

Nothing to do with bash.  Depends on how the cat process reacts to the
SIGTSTP and whether or not the terminal driver even lets cat see the
partial line, since it's running in cooked mode.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                       Live Strong.  No day but today.
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]