Gentoo Archives: gentoo-dev

From: Roy Marples <uberlord@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] baselayout-1.13 going into ~ARCH soon
Date: Tue, 07 Nov 2006 16:41:31
Message-Id: 200611071637.22581.uberlord@gentoo.org
In Reply to: Re: [gentoo-dev] baselayout-1.13 going into ~ARCH soon by Aron Griffis
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

Replies

Subject Author
Re: [gentoo-dev] baselayout-1.13 going into ~ARCH soon Drake Wyrm <wyrm@×××××.com>