tlabel: write to /dev/tty to avoid redirections - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 3625f268527a3106714e5aa6fd0d6b396854309c
 (DIR) parent 833c88d4daf56ac61d915901dec23f81c0f5f444
 (HTM) Author: Russ Cox <rsc@swtch.com>
       Date:   Tue,  5 May 2009 07:06:07 -0700
       
       label: write to /dev/tty to avoid redirections
       
       Diffstat:
         M bin/label                           |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/bin/label b/bin/label
       t@@ -10,7 +10,7 @@ SunOS)
        esac
        
        label() {
       -        echo "$@" | $awk '{printf("\033];%s\007", $0);}'
       +        echo "$@" | $awk '{printf("\033];%s\007", $0);}' >/dev/tty
        }
        
        label "$@"