On 08/04/2010 02:18 PM, Ralf Wildenhues wrote: >> # strip leading dash in $action >> case $action in >> -*) action="${action#-}" ;; >> esac > > The case statement is unnecessary, you can use just > action=${action#-}
Either way, this assumes an XSI shell. Are we guaranteed that this script will only run on hosts where all shells understand this, or is it likely to trip up on Solaris /bin/sh? -- Eric Blake ebl...@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature