Re: weird error due to cntrl-c out of history list

2017-02-20 Thread Chet Ramey
On 2/20/17 12:40 AM, L A Walsh wrote:
> In both 4.3.42(2)-release and
> 4.4.5(1)-release, I was listing my history (history cmd)
> and hit control-C and got:

Do you have SIGINT trapped?

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/



Re: weird error due to cntrl-c out of history list

2017-02-20 Thread Chris F.A. Johnson

On Sun, 19 Feb 2017, L A Walsh wrote:


In both 4.3.42(2)-release and
4.4.5(1)-release, I was listing my history (history cmd)
and hit control-C and got:
4402  0502@091824: ls *
4403  0502@091901: cd ..
4404  0502@091930: cd xyzzy-1.8.4.1/
4405  0502@091932: ls
4406  0502@091939: grep -r template .
^C
bash: printf: write error: Success


I usually get no messsage, or occasionally:

43708  30-Sep-2016_21:33:41 jfr2html-sh 
43709  30-Sep-2016_21:33:54 u books

43710  01-Oct-2016_15:17:54 jfr
43711  01-Oct-2016_21:38:05 kjgrep Deuteronomy~023

^Cbash: printf: write error: Interrupted system call


--
Chris F.A. Johnson, 



weird error due to cntrl-c out of history list

2017-02-19 Thread L A Walsh

In both 4.3.42(2)-release and
4.4.5(1)-release, I was listing my history (history cmd)
and hit control-C and got:
4402  0502@091824: ls *
4403  0502@091901: cd ..
4404  0502@091930: cd xyzzy-1.8.4.1/
4405  0502@091932: ls
4406  0502@091939: grep -r template .
^C
bash: printf: write error: Success

bash: printf: write error: Success

bash: printf: write error: Success

bash: printf: write error: Success

bash: printf: write error: Success

bash: printf: write error: Success

bash: printf: write error: Success


---
At that point the shell is rather 'sad'... hitting more
ctl-c's gives more write errors, and ctl-d exits the shell.


 echo $TIMEFORMAT

%2Rsec %2Uusr %2Ssys (%P%% cpu)

 history|wc

 27169  125636 1170025

Anyone else able to reproduce this or is this just another
weirdism specific to my setup?  *sigh*

tnx,
-l