From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ig0-f175.google.com (mail-ig0-f175.google.com [209.85.213.175]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by mail09.linbit.com (LINBIT Mail Daemon) with ESMTPS id 1A6381045C28 for ; Fri, 8 May 2015 06:55:23 +0200 (CEST) Received: by igbyr2 with SMTP id yr2so12027657igb.0 for ; Thu, 07 May 2015 21:55:21 -0700 (PDT) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by mx.google.com with ESMTPSA id h128sm2785342ioh.38.2015.05.07.21.55.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 May 2015 21:55:19 -0700 (PDT) Date: Thu, 7 May 2015 23:55:17 -0500 From: Justin Pryzby To: drbd-dev@lists.linbit.com Message-ID: <20150508045517.GA6131@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Drbd-dev] crm-fence-peer.sh missing shell expansion List-Id: "*Coordination* of development, patches, contributions -- *Questions* \(even to developers\) go to drbd-user, please." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , There are several instances of unexpanded variables in here: sleep $(( net_hickup_time - SECONDS )) reboot_timeout=$(( reboot_timeout + SECONDS )) echo WARNING "${extra_msg}going to reboot -f in $(( reboot_timeout - SECONDS )) seconds! To cancel: kill $$" if out=$( crmadmin -t $(( cibtimeout * 200 )) -S $DRBD_PEER ) \