From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x0DLqBmW018358 for ; Sun, 13 Jan 2019 16:52:11 -0500 Received: by smtp.corp.redhat.com (Postfix) id 4A2295D70A; Sun, 13 Jan 2019 21:52:11 +0000 (UTC) Received: from mx1.redhat.com (ext-mx02.extmail.prod.ext.phx2.redhat.com [10.5.110.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3DE3E5D76A for ; Sun, 13 Jan 2019 21:52:07 +0000 (UTC) Received: from gateway30.websitewelcome.com (gateway30.websitewelcome.com [192.185.160.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2F68986663 for ; Sun, 13 Jan 2019 21:52:06 +0000 (UTC) Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway30.websitewelcome.com (Postfix) with ESMTP id 688D55A75 for ; Sun, 13 Jan 2019 15:52:05 -0600 (CST) Received: from gator4065.hostgator.com ([192.185.4.76]) by cmsmtp with SMTP id infpgGm3e2PzOinfpgtzPG; Sun, 13 Jan 2019 15:52:05 -0600 X-Authority-Reason: nr=8 Received: from [77.125.57.214] (port=49286 helo=telaviv1.shlomifish.org) by gator4065.hostgator.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1ginfp-002ysr-1c for blinux-list@redhat.com; Sun, 13 Jan 2019 15:52:05 -0600 Received: from telaviv1.shlomifish.org (telaviv1.shlomifish.org [127.0.0.1]) by telaviv1.shlomifish.org (Postfix) with ESMTP id EDC9126005F for ; Sun, 13 Jan 2019 23:52:02 +0200 (IST) Date: Sun, 13 Jan 2019 23:52:02 +0200 To: blinux-list@redhat.com Subject: Re: bash undocumented syntax error Message-ID: <20190113235202.76ed98fa@telaviv1.shlomifish.org> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4065.hostgator.com X-AntiAbuse: Original Domain - redhat.com X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - shlomifish.org X-BWhitelist: no X-Source-IP: 77.125.57.214 X-Source-L: No X-Exim-ID: 1ginfp-002ysr-1c X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (telaviv1.shlomifish.org) [77.125.57.214]:49286 X-Source-Auth: shlomif@shlomifish.org X-Email-Count: 1 X-Source-Cap: c2hsb21pZjtzaGxvbWlmO2dhdG9yNDA2NS5ob3N0Z2F0b3IuY29t X-Local-Domain: yes X-Greylist: Sender passed SPF test, Sender IP whitelisted by DNSRBL, ACL 216 matched, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Sun, 13 Jan 2019 21:52:06 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Sun, 13 Jan 2019 21:52:06 +0000 (UTC) for IP:'192.185.160.12' DOMAIN:'gateway30.websitewelcome.com' HELO:'gateway30.websitewelcome.com' FROM:'shlomif@shlomifish.org' RCPT:'' X-RedHat-Spam-Score: 0.641 (RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_NEUTRAL) 192.185.160.12 gateway30.websitewelcome.com 192.185.160.12 gateway30.websitewelcome.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.26 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id x0DLqBmW018358 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 21:52:11 -0000 Hi Jeff, On Sun, 13 Jan 2019 18:44:14 +0000 Linux for blind general discussion wrote: > Yeah, an error of this type is hard enough to debug when you have > access to the buggy code. Debugging from the error message alone is > nearly impossible in cases like this. > > I will mention, however, that bash, and many other shells/scripting > languages, aren't picky about single quotes versus double quotes in > general, but can be quite picky that they're used consistently. E.g. > if you start a string literal with single quotes, you'd better end it > with single quotes, and if you start it with double quotes, you'd > better end it with double quotes, but bash probably doesn't care which > you use as long as the beginning and ending delimiters are the same. > see https://stackoverflow.com/questions/6697753/difference-between-single-and-double-quotes-in-bash - they have different semantics. > Probably about the best advice I can give without examining the code directly. > > -Jeff > > On 1/13/19, Linux for blind general discussion wrote: > > On Sun, 13 Jan 2019, Linux for blind general discussion wrote: > > > >> The man page has nothing on unexpected end of file in it; searching for > >> unexpected in that man page provides no mention of unexpected. > > > > Possibly I've missed the context for this if it's a new thread resulting > > from a previous one (I am not up-to-date on this list). > > > > The error seems pretty self-explanatory. Bash expected more input when it > > reached the end. > > > > I would expect that it was either looking for a closing quote (single or > > double) or a closing bracket of some sort. > > > > what are you trying to do? > > > > Cheers, > > Geoff. > > > > _______________________________________________ > > Blinux-list mailing list > > Blinux-list@redhat.com > > https://www.redhat.com/mailman/listinfo/blinux-list > > > > _______________________________________________ > Blinux-list mailing list > Blinux-list@redhat.com > https://www.redhat.com/mailman/listinfo/blinux-list -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ The Case for File Swapping - http://shlom.in/file-swap Only wimps use tape backup: real men just upload their important stuff on FTP, and let the rest of the world mirror it. — https://en.wikiquote.org/wiki/Linus_Torvalds Please reply to list if it's a mailing list post - http://shlom.in/reply .