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


Groups > gnu.bash.bug > #14290

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

Path csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From toww <toww@nvidia.com>
Newsgroups gnu.bash.bug
Subject bash 4.3.48(1) and repo: processing of commands halts at first semicolon
Date Mon, 2 Jul 2018 16:58:06 -0700
Lines 71
Approved bug-bash@gnu.org
Message-ID <mailman.2988.1530601715.1292.bug-bash@gnu.org> (permalink)
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset="utf-8"; format=flowed
Content-Transfer-Encoding quoted-printable
X-Trace usenet.stanford.edu 1530601716 11481 208.118.235.17 (3 Jul 2018 07:08:36 GMT)
X-Complaints-To action@cs.stanford.edu
To <bug-bash@gnu.org>, <bash@packages.debian.org>
Envelope-to bug-bash@gnu.org
X-PGP-Universal processed; by hqpgpgate101.nvidia.com on Mon, 02 Jul 2018 16:58:07 -0700
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0
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.143
X-Mailman-Approved-At Tue, 03 Jul 2018 03:08:33 -0400
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:14290

Show key headers only | View raw


Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' 
-DCONF_OSTYPE='l$
uname output: Linux 20180329x99-a 4.13.0-38-generic #43~16.04.1-Ubuntu 
SMP Wed $
Machine Type: x86_64-pc-linux-gnu

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.

Please see below reproduction steps.


Repeat-By:

Using bash 4.3.11(1)-release, installed with Ubuntu 14.04 LTS, the command

     repo forall -c "pwd; git log -n 1 --format=fuller ; echo"

produces correct output: for each and every git repository encountered, 
the above command outputs

     1) The current directory

     2) Information about the latest commit in the repository

     3) A blank line

Using bash 4.3.48(1)-release, installed with Ubuntu 16.04 LTS, the command

     repo forall -c "pwd; git log -n 1 --format=fuller ; echo"

produces incomplete output: for each and every git repository 
encountered, the above command outputs

     1) The current directory

and nothing else. (Subcommands after the semicolon do not get invoked.)


The above were all tested with the exact same versions of "repo" and "git":

repo version v1.12.37
        (from https://gerrit.googlesource.com/git-repo)
repo launcher version 1.23
        (from /usr/local/bin/repo)
git version 2.7.4
Python 2.7.12 (default, Dec  4 2017, 14:50:18)
[GCC 5.4.0 20160609]

Regards,

Tow

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


Thread

bash 4.3.48(1) and repo: processing of commands halts at first semicolon toww <toww@nvidia.com> - 2018-07-02 16:58 -0700

csiph-web