[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Poor failure recovery



On Oct 12, Raul Miller <moth@debian.org> wrote:
 >Is there any particular advantage to having a statically linked
 >cat?  [Are you wanting to run shell scripts on a heavily damaged
 >system?]
shcat=()
{
    if [ -n "$1" ]; then
        {
            while read -r line; do
                echo "$line";
            done
        }<$1;
    else
        while read -r line; do
            echo "$line";
        done;
    fi
}


-- 
ciao,
Marco


Reply to: