Skip to contentSkip to conversation

bksend example script fix

PATCH New Matthias Urlichs 1 participant 1 message Feb 18, 2005 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bksend example script fix

The "bksend" example script doesn't work if PAGER (used by "bk changes") is set to something which doesn't fallback to plain stdout if its output isn't a tty.

Fixed by forcing PAGER to be /bin/cat.

Documentation/BK-usage/bksend +1 -1
diff -Nru a/Documentation/BK-usage/bksend b/Documentation/BK-usage/bksend
@@ -27,7 +27,7 @@
 
 SEP="\n===================================================================\n\n"
 echo -e $SEP
-bk changes -r$REV
+env PAGER=/bin/cat bk changes -r$REV
 echo
 bk export -tpatch -du -h -r$REV | diffstat
 echo; echo
Signature · 1 line
Matthias Urlichs   |   {M:U} IT Design @ m-u-it.de   |  [email protected]