`zsh' itself is fine here; but I'm making this portable to `bash'.
*) icon=dialog-warning head="Command FAILED (rc = $rc)" ;;
esac
cmd=${__wakey_cmd//&/&}; cmd=${cmd//</<}; cmd=${cmd//>/>}
*) icon=dialog-warning head="Command FAILED (rc = $rc)" ;;
esac
cmd=${__wakey_cmd//&/&}; cmd=${cmd//</<}; cmd=${cmd//>/>}
- notify-send -c Wakey -i $icon -t 5000 $head $cmd
+ notify-send -c Wakey -i $icon -t 5000 "$head" "$cmd"
esac
__wakey_start=nil
;;
esac
__wakey_start=nil
;;