Workarounded function cvsdiff & cvsupdate to not to break on EAGAIN during "|less"
authorshort <>
Tue, 27 Nov 2001 21:08:59 +0000 (21:08 +0000)
committershort <>
Tue, 27 Nov 2001 21:08:59 +0000 (21:08 +0000)
 - "cvs" (at least from my cvs-1.11-3_nokerberos_static.i386.rpm) has an army
    of its own signal handlers and therefore otherwise transparent EAGAIN hits

.bashrc

diff --git a/.bashrc b/.bashrc
index 960a7e3..eca975d 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -58,9 +58,9 @@ export GREP_OPTIONS="--binary-files=without-match --directories=skip"
 # even when LANG is set to "en_US" it is lethal - strcoll() starts to sort case-insensitively!
 unset LANG
 
-function cvsdiff    { cvs diff   "$@" 2>&1|             less; }; export -f cvsdiff
+function cvsdiff    { cvs diff   "$@" 2>&1|cat         |less; }; export -f cvsdiff
 function cvsdiffi   { cvs diff   "$@" 2>&1|grep -v '^?'|less; }; export -f cvsdiffi
-function cvsupdate  { cvs update "$@" 2>&1|             less; }; export -f cvsupdate
+function cvsupdate  { cvs update "$@" 2>&1|cat         |less; }; export -f cvsupdate
 function cvsupdatei { cvs update "$@" 2>&1|grep -v '^?'|less; }; export -f cvsupdatei
 function cvsfiles {
        for i in `find . -name Entries|grep '/CVS/Entries$'`;do