aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2009-05-05 07:06:07 -0700
committerRuss Cox <rsc@swtch.com>2009-05-05 07:06:07 -0700
commit3625f268527a3106714e5aa6fd0d6b396854309c (patch)
tree167d116642181f3cb078c5bae08d98aa5bf91f71
parent833c88d4daf56ac61d915901dec23f81c0f5f444 (diff)
downloadplan9port-3625f268527a3106714e5aa6fd0d6b396854309c.tar.gz
plan9port-3625f268527a3106714e5aa6fd0d6b396854309c.tar.bz2
plan9port-3625f268527a3106714e5aa6fd0d6b396854309c.zip
label: write to /dev/tty to avoid redirections
-rwxr-xr-xbin/label2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/label b/bin/label
index 0426e354..ea454f2f 100755
--- a/bin/label
+++ b/bin/label
@@ -10,7 +10,7 @@ SunOS)
esac
label() {
- echo "$@" | $awk '{printf("\033];%s\007", $0);}'
+ echo "$@" | $awk '{printf("\033];%s\007", $0);}' >/dev/tty
}
label "$@"