Path: csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: toww 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: 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: , 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.bash.bug:14290 Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS:=C2=A0 -DPROGRAM=3D'bash' -DCONF_HOSTTYPE=3D'x86_64'=20 -DCONF_OSTYPE=3D'l$ uname output: Linux 20180329x99-a 4.13.0-38-generic #43~16.04.1-Ubuntu=20 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=20 how the Google "repo" utility interacts with the bash shell. Previously=20 I could invoke the "repo" command, passing to it a string to execute=20 multiple commands separated by semicolons (';' characters), and all=20 commands would execute. Now with the latest bash 4.3.38, only the first=20 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 =C2=A0=C2=A0=C2=A0 repo forall -c "pwd; git log -n 1 --format=3Dfuller ; e= cho" produces correct output: for each and every git repository encountered,=20 the above command outputs =C2=A0=C2=A0=C2=A0 1) The current directory =C2=A0=C2=A0=C2=A0 2) Information about the latest commit in the repositor= y =C2=A0=C2=A0=C2=A0 3) A blank line Using bash 4.3.48(1)-release, installed with Ubuntu 16.04 LTS, the command =C2=A0=C2=A0=C2=A0 repo forall -c "pwd; git log -n 1 --format=3Dfuller ; e= cho" produces incomplete output: for each and every git repository=20 encountered, the above command outputs =C2=A0=C2=A0=C2=A0 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 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (from https://gerrit.googlesource.com= /git-repo) repo launcher version 1.23 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (from /usr/local/bin/repo) git version 2.7.4 Python 2.7.12 (default, Dec=C2=A0 4 2017, 14:50:18) [GCC 5.4.0 20160609] Regards, Tow