label: write to /dev/tty to avoid redirections

This commit is contained in:
Russ Cox 2009-05-05 07:06:07 -07:00
parent 833c88d4da
commit 3625f26852

View file

@ -10,7 +10,7 @@ SunOS)
esac
label() {
echo "$@" | $awk '{printf("\033];%s\007", $0);}'
echo "$@" | $awk '{printf("\033];%s\007", $0);}' >/dev/tty
}
label "$@"