On Tuesday 07 November 2006 15:59, Aron Griffis wrote:
> > +if [[ $'\n'$(get_mounts) =~ $'\n'${svcdir}\ && -w ${svclib} ]] ; then
>
> Shouldn't this be:
>
> if [[ $'\n'$(get_mounts) == $'\n'"${svcdir} " ...
>
> because I don't think you want to treat the RHS as either a regex (=~)
> or a glob (unquoted).
Needs to be regex so I can match $'\n' as iirc you loose that in globbing
--
Roy Marples <[EMAIL PROTECTED]>
Gentoo/Linux/FreeBSD Developer (baselayout, networking)
--
[email protected] mailing list