Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #14296

Re: bash 4.3.48(1) and repo: processing of commands halts at first semicolon

Path csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail
From toww <toww@nvidia.com>
Newsgroups gnu.bash.bug
Subject Re: bash 4.3.48(1) and repo: processing of commands halts at first semicolon
Date Tue, 3 Jul 2018 13:52:13 -0700
Lines 48
Approved bug-bash@gnu.org
Message-ID <mailman.3026.1530651144.1292.bug-bash@gnu.org> (permalink)
References <b4889982-417e-df6d-152a-3dd1505ef402@nvidia.com> <7474bb6d-af63-4a00-7a2b-97a1eb98c86b@case.edu> <fc26db6e-9419-12f6-86c6-69e3147ab9cd@case.edu>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset="utf-8"; format=flowed
Content-Transfer-Encoding 7bit
X-Trace usenet.stanford.edu 1530651144 12267 208.118.235.17 (3 Jul 2018 20:52:24 GMT)
X-Complaints-To action@cs.stanford.edu
To <chet.ramey@case.edu>, <bug-bash@gnu.org>, <bash@packages.debian.org>
Envelope-to bug-bash@gnu.org
X-PGP-Universal processed; by hqpgpgate101.nvidia.com on Tue, 03 Jul 2018 13:52:14 -0700
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0
In-Reply-To <fc26db6e-9419-12f6-86c6-69e3147ab9cd@case.edu>
X-Originating-IP [172.17.175.229]
X-ClientProxiedBy HQMAIL107.nvidia.com (172.20.187.13) To HQMAIL112.nvidia.com (172.18.146.18)
Content-Language en-US
X-detected-operating-system by eggs.gnu.org: Windows 7 or 8 [fuzzy]
X-Received-From 216.228.121.64
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.21
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <http://lists.gnu.org/archive/html/bug-bash/>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
Xref csiph.com gnu.bash.bug:14296

Show key headers only | View raw


Chet:

Thank you for the pointers. I tried to read through the "repo" code all 
morning. I don't really know Python, but what I can see is that:

1) It appears to not invoke any specific shell. It seems to fork a new 
process, which would duplicate whatever shell it started with.

2) It has a "DoWork" function that manipulates stdin and stdout, 
processing commands and their outputs. I did not see it trying to break 
up long strings of commands.

I am debugging what appears to be a problem on our end. Using the "-x" 
setting you suggested, it looks like an intermediate script on my end, 
which for reasons unknown to me only runs for 4.3.48, is breaking up the 
multi-command string into a single string followed by tokens that I 
presume would be treated as extraneous arguments, rather than additional 
commands.

I am going to investigate things further on my end; you can put this 
matter on hold for now. Thank you for your help and sorry for the noise.

Tow


On 07/03/2018 09:59 AM, Chet Ramey wrote:
> On 7/3/18 10:34 AM, Chet Ramey wrote:
>> On 7/2/18 5:58 PM, toww wrote:
>>
>>> Bash Version: 4.3
>>> Patch Level: 48
>>> Release Status: release
>>>
>>> Description:
>>> There seems to be a new incompatibility or incorrect string parsing in how
>>> the Google "repo" utility interacts with the bash shell. Previously I could
>>> invoke the "repo" command, passing to it a string to execute multiple
>>> commands separated by semicolons (';' characters), and all commands would
>>> execute. Now with the latest bash 4.3.38, only the first command executes,
>>> and processing stops at the semicolon.
>> It would help to see the exact set of commands that repo uses to invoke the
>> shell, the options it passes to shell invocation. It would help more to
>> have a reproducer that doesn't involve `repo'.
> You could also check whether repo is invoking /bin/sh instead of /bin/bash,
> and, if so, whether bash is installed as /bin/sh.
>

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: bash 4.3.48(1) and repo: processing of commands halts at first semicolon toww <toww@nvidia.com> - 2018-07-03 13:52 -0700

csiph-web