Re: shell variable security

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

 



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.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux