Re: Doesn't wodim close disk ?
On Tue, Jan 01, 2008 at 01:54:43PM +0100, Gregoire Favre wrote:
> #!/bin/bash
[...]
> UNLOCK='cdrdao unlock --device 0,1,0 --driver generic-mmc && sleep 1'
[...]
> #$UNLOCK
Good thing this is commented out, because that would not have worked.
Try using a function instead:
unlock() {
cdrdao unlock ... && sleep 1
}
...
unlock
You can't stick a complex command (foo && bar) in a variable and execute
it with a simple parameter expansion -- you would have to use eval for
that, and you really don't want to do that. Just use a function.
Reply to: