[Bash-completion-devel] Always using [[ instead of [
Ville Skyttä
ville.skytta at iki.fi
Sun Nov 20 10:00:36 UTC 2011
On 11/20/2011 03:28 AM, Igor Murzov wrote:
> That's not true. Double brackets still need quotes:
>
> --------------------------------------
> $ x="a\ b"
> $ y="a\ bc"
> $ [[ $y == $x* ]] && echo "[$x] is prefix of [$y]"
> $ [[ "$y" == "$x"* ]] && echo "[$x] is prefix of [$y]"
> [a\ b] is prefix of [a\ bc]
> --------------------------------------
Curious. But the above demonstrates that the right side of == needs
them, not that [[ would need them.
More information about the Bash-completion-devel
mailing list