[MPlayer-cvslog] r23862 - trunk/configure
Diego Biurrun
diego at biurrun.de
Fri Jul 27 14:31:59 CEST 2007
On Fri, Jul 27, 2007 at 11:06:59AM +0200, Attila Kinali wrote:
> On Thu, 26 Jul 2007 12:14:04 +0200
> Reimar Döffinger <Reimar.Doeffinger at stud.uni-karlsruhe.de> wrote:
>
> > > > - if ` echo $2 | grep "[^ ]$part[ $]" > /dev/null `; then
> > > > + if ` echo $2 | grep "\<$part\>" > /dev/null `; then
> > >
> > > in my test the more standard
> > >
> > > if ` echo $2 | grep "[ ^]$part[ $]" > /dev/null `; then
> >
> > Forget it, can't work.
> > \b instead of \< and \> might, but no idea if it is more portable.
>
> Why not use grep '^'$part'$' ? Even solaris grep understands that.
Or maybe use backslashes to escape the special characters. In any case
\< and \> are not available everywhere. I forget whether it's in egrep
or not in POSIX or whatever, though.
Diego
More information about the MPlayer-cvslog
mailing list