HomeClusterLabs Projects

Medium: oracle: quote regex

Description

Medium: oracle: quote regex

To avoid it getting glob-expanded by the shell by accident.
demo:
set -x
mkdir -p ^/.blafoo$
echo /foo | grep ^/.*foo$ || echo BROKEN
echo /foo | grep "^/.*foo$" || echo BROKEN

Admittedly unlikely, but let's be paranoid.

Details

Provenance
Lars Ellenberg <lars.ellenberg@linbit.com>Authored on May 23 2012, 6:55 AM
Parents
rRb17941e893ad: Medium: oracle, oralsnr: get rid of eval
Branches
Unknown
Tags
Unknown

Event Timeline