On 2010-03-01 14:41, Cristian Mammoli - Apra Sistemi wrote: > Florian Haas wrote: >> Christian, >> >> One more thing: >> >> $ checkbashisms heartbeat/vmware >> possible bashism in heartbeat/vmware line 81 (should be >word 2>&1): >> $VIMSHBIN vmsvc/message $1 $2 $3 &> /dev/null >> possible bashism in heartbeat/vmware line 86 (should be >word 2>&1): >> $VIMSHBIN solo/registervm '"'$1'"' &> /dev/null >> possible bashism in heartbeat/vmware line 91 (should be >word 2>&1): >> $VIMSHBIN vmsvc/unregister $1 &> /dev/null >> possible bashism in heartbeat/vmware line 96 (should be >word 2>&1): >> $VIMSHBIN vmsvc/power.on $1 &> /dev/null >> possible bashism in heartbeat/vmware line 101 (should be >word 2>&1): >> $VIMSHBIN vmsvc/power.suspend $1 &> /dev/null > > That means that "&>/dev/null" redirection is bash specific and I should > use ">/dev/null 2>&1" instead?
Yes. That's what checkbashisms says, at least. :) Although I'm not sure whether it's actually a good idea to just discard stderr on all of these -- your call. Cheers, Florian
signature.asc
Description: OpenPGP digital signature
_______________________________________________________ Linux-HA-Dev: [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
