aboutsummaryrefslogtreecommitdiff
path: root/bin/label
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-03-31 01:01:24 +0000
committerrsc <devnull@localhost>2004-03-31 01:01:24 +0000
commit1ed1c638a8f5c8d1d3c624800448f44cee8d1a09 (patch)
tree287ad0e2cb72cce143dfcb4198ed86ff1eeef52e /bin/label
parent4f30f3b44464f9b89512224095474200390b03e9 (diff)
downloadplan9port-1ed1c638a8f5c8d1d3c624800448f44cee8d1a09.tar.gz
plan9port-1ed1c638a8f5c8d1d3c624800448f44cee8d1a09.tar.bz2
plan9port-1ed1c638a8f5c8d1d3c624800448f44cee8d1a09.zip
Small fixes
Diffstat (limited to 'bin/label')
-rwxr-xr-xbin/label11
1 files changed, 10 insertions, 1 deletions
diff --git a/bin/label b/bin/label
index e8e3e8b0..0426e354 100755
--- a/bin/label
+++ b/bin/label
@@ -1,7 +1,16 @@
#!/bin/sh
+case `uname` in
+SunOS)
+ awk=nawk
+ ;;
+*)
+ awk=awk
+ ;;
+esac
+
label() {
- echo "$@" | awk '{printf("\033];%s\007", $0);}'
+ echo "$@" | $awk '{printf("\033];%s\007", $0);}'
}
label "$@"