[Pm-utils] Re: [patch] fix modunload function
Peter Jones
pjones at redhat.com
Fri Mar 16 09:20:26 PDT 2007
On Fri, 2007-03-16 at 14:06 +0100, Stefan Seyfried wrote:
> Hi,
>
> modunload currently does not unload anything but "pcmcia" for me.
> I'm not sure why this is happening, maybe it is even a bug in my
> bash, since
>
> root at strolchi:/# A=button
> root at strolchi:/# B=$A
> root at strolchi:/# [[ "$A" =~ "$B" ]] || echo hello
> hello
>
> looks strange.
Yeah, that looks pretty broken. Works here, btw:
vroomfondel:~$ A=button
vroomfondel:~$ B=$A
vroomfondel:~$ [[ "$A" =~ "$B" ]] || echo hello
vroomfondel:~$
I dunno if bash uses its own expressions or what, but FWIW,
vroomfondel:~$ rpm -q bash glibc
bash-3.2-9.fc7
glibc-2.5.90-17
But yeah, your patch is simpler and should work, so applied.
--
Peter
More information about the Pm-utils
mailing list