lib/scripts/ucat
author wenzelm
Tue, 10 Dec 1996 14:16:11 +0100
changeset 2369 8100f00e8950
parent 2347 a42c1b835fb3
child 2579 4af1023fc6bf
permissions -rwxr-xr-x
removed ambiguous symbols syntax;

#!/bin/bash -norc
#
# $Id$
#
# ucat - uninterruptible cat.
#
# NOTE: If perl is unavailable we simply fall back on normal cat!


PERL=$(type -path perl)

if [ -z "$PERL" ]
then
  exec cat "$@"
else
  exec $PERL -e '$SIG{INT} = "IGNORE"; $| = 1; while (<ARGV>) {print;}' "$@"
fi