functions cvs{diff,update}{,i} fixed - "cat" filter -> really "pipebuf" filter
authorshort <>
Tue, 27 Nov 2001 23:39:39 +0000 (23:39 +0000)
committershort <>
Tue, 27 Nov 2001 23:39:39 +0000 (23:39 +0000)
 - probably some experiment mistake as it appeared "cat" would be enough

.bashrc

diff --git a/.bashrc b/.bashrc
index 1b84bed..e7071ab 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -58,10 +58,10 @@ 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|cat         |less; }; export -f cvsdiff
-function cvsdiffi   { cvs diff   "$@" 2>&1|grep -v '^?'|less; }; export -f cvsdiffi
-function cvsupdate  { cvs update "$@" 2>&1|cat         |less; }; export -f cvsupdate
-function cvsupdatei { cvs update "$@" 2>&1|grep -v '^?'|less; }; export -f cvsupdatei
+function cvsdiff    { cvs diff   "$@" 2>&1|pipebuf -q|             less; }; export -f cvsdiff
+function cvsdiffi   { cvs diff   "$@" 2>&1|pipebuf -q|grep -v '^?'|less; }; export -f cvsdiffi
+function cvsupdate  { cvs update "$@" 2>&1|pipebuf -q|             less; }; export -f cvsupdate
+function cvsupdatei { cvs update "$@" 2>&1|pipebuf -q|grep -v '^?'|less; }; export -f cvsupdatei
 function cvsfiles {
        for i in `find . -name Entries|grep '/CVS/Entries$'`;do
                j="`echo "$i"|sed 's,CVS/Entries$,,'`"