aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xp2
1 files changed, 1 insertions, 1 deletions
diff --git a/p b/p
index fa6db76..b145031 100755
--- a/p
+++ b/p
@@ -2,6 +2,6 @@
# p -- maybe view command output in pager
-[ -t 0 ] && exec /bin/sh -c '"$@" | "$0"' "$0" "$@"
+[ -t 0 ] && exec /bin/sh -c '"$@" 2>&1 | "$0"' "$0" "$@"
cat | tee /var/tmp/pg