From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x0DMDHgG020854 for ; Sun, 13 Jan 2019 17:13:17 -0500 Received: by smtp.corp.redhat.com (Postfix) id C72D4451D; Sun, 13 Jan 2019 22:13:17 +0000 (UTC) Received: from mx1.redhat.com (ext-mx04.extmail.prod.ext.phx2.redhat.com [10.5.110.28]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BF421450F for ; Sun, 13 Jan 2019 22:13:15 +0000 (UTC) Received: from mail.carmickle.com (mail.carmickle.com [69.164.218.211]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 934628046C for ; Sun, 13 Jan 2019 22:13:13 +0000 (UTC) Received: from portkey.lan (unknown [176.230.184.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.carmickle.com (Postfix) with ESMTPSA id 1BF493DE8792 for ; Sun, 13 Jan 2019 22:13:11 +0000 (UTC) Date: Sun, 13 Jan 2019 22:13:08 +0000 (GMT) X-X-Sender: geoff@portkey.home To: Linux for blind general discussion Subject: Re: bash undocumented syntax error In-Reply-To: Message-ID: References: User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quitelikely.com; s=20160808-mail; t=1547417592; bh=hU/yKLfLqnhgbMiS3TV+VsS4zvXRKaomYgnxKFG5qnM=; h=Date:From:To:Subject:In-Reply-To:Message-ID:References:MIME-Version:Content-Type; b=nVc4tAXzonabOrvkqkqW4b+Q8podFNE1p1uHOb7Ft50Ai420eL0DFFwijTdnx/vJVYa0baXzBhvzO3jLZxBn6owPnGPmwWRj+eZpqaxKlPMF3CRGGDGqEBkqnmoz2Oq47BfNmKOZiBAbXgaFazakF9t1D/FvuitjESUiAZLKTQ4= X-Greylist: Sender passed SPF test, ACL 238 matched, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Sun, 13 Jan 2019 22:13:14 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Sun, 13 Jan 2019 22:13:14 +0000 (UTC) for IP:'69.164.218.211' DOMAIN:'mail.carmickle.com' HELO:'mail.carmickle.com' FROM:'geoff@QuiteLikely.com' RCPT:'' X-RedHat-Spam-Score: -0.1 (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU) 69.164.218.211 mail.carmickle.com 69.164.218.211 mail.carmickle.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.28 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: blinux-list@redhat.com From: Linux for blind general discussion X-BeenThere: blinux-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk Reply-To: blinux-list@redhat.com List-Id: Linux for blind general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jan 2019 22:13:17 -0000 On Sun, 13 Jan 2019, Linux for blind general discussion wrote: > file integrity checking when the time is right. > Here's some code: > > #!/usr/bin/env bash > # file: getslint.sh - download latest slint iso. > if [ -f wget-log ]; > rm wget-log It looks like you solved this, but I believe this should be (it's been awhile since I've done this): if [ -f wget-log ] then rm wget-log fi for a one-liner like this, you could just as easily write: [ -f wget-log ] && rm wget-log or test -f wget-log && rm wget-log > wget -bc --tries=inf --max-redirect=10000 --trust-server-names https://sourceforge.net/projects/slint/files/latest/download > until [ tail -2 wget-log|grep "saved" ]; do > sleep 5 > done > sha256sum -c slint64-14.2.1.1.sha256sum NOt sure exactly why you're doing this. It looks like you're putting wget in the background, then waiting around until it finishes. So why background it at all? Cheers, Geoff.