aboutsummaryrefslogtreecommitdiff
path: root/p
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-21 11:20:43 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-21 11:20:43 +0200
commitf4d044d4b6cbb2d2648a170cefa45befba3af3d5 (patch)
tree3ff5c5bdd3a1536555bef48265123813fceeb622 /p
parente8e3d60b8c258bd7604457ad0db0c2017f50af3e (diff)
downloadxutil-f4d044d4b6cbb2d2648a170cefa45befba3af3d5.tar.gz
p: Capture stderr
Diffstat (limited to 'p')
-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