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

Re: The ‘read -r’ bashism.



Le Tue, Jun 09, 2009 at 07:59:53PM -0700, Ben Pfaff a écrit :
> 
> Perhaps the fix is as simple as changing
>         read
> to
>         read REPLY.

Dear Ben, thank you very much.

Indeed, in the script found by checkbashisms, there is:

    echo "To exit use Control C or press return to continue."
    echo
    echo "--------------------------------------------------------------"
    read

which will fail if using dash as /bin/sh.

Have a nice week-end,

-- 
Charles Plessy
Debian Med packaging team,
http://www.debian.org/devel/debian-med
Tsurumi, Kanagawa, Japan


Reply to: