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

Re: shell variable security



Forgot my closing square bracket in that last posting. Re-posting for
archive purposes in case someone with less bash experience stumbles
across this later and tries it (and for those of us who copy/paste to
save typing...).

if [ "$name" !> "${name%%+(;|:)*}" ]
then
    echo "Invalid character!"
fi

Jacques B.


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