1 |
On Tuesday 07 November 2006 15:59, Aron Griffis wrote: |
2 |
> > +if [[ $'\n'$(get_mounts) =~ $'\n'${svcdir}\ && -w ${svclib} ]] ; then |
3 |
> |
4 |
> Shouldn't this be: |
5 |
> |
6 |
> if [[ $'\n'$(get_mounts) == $'\n'"${svcdir} " ... |
7 |
> |
8 |
> because I don't think you want to treat the RHS as either a regex (=~) |
9 |
> or a glob (unquoted). |
10 |
|
11 |
Needs to be regex so I can match $'\n' as iirc you loose that in globbing |
12 |
|
13 |
-- |
14 |
Roy Marples <uberlord@g.o> |
15 |
Gentoo/Linux/FreeBSD Developer (baselayout, networking) |
16 |
-- |
17 |
gentoo-dev@g.o mailing list |