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

2018-07-03 Thread toww
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 "D

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

2018-07-03 Thread Chet Ramey
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. P

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

2018-07-03 Thread Chet Ramey
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, p

Re: Redirect to variable

2018-07-03 Thread Greg Wooledge
On Tue, Jul 03, 2018 at 10:43:31PM +1000, Robert Durkacz wrote: > On 5/21/18 Chet Ramey wrote: > > > > What you're asking for is syntactic sugar for: > > > some-command > temp-file > > echo '#' >> temp-file > > variablename=$(< temp-file) > > rm -f temp-file > > variablename=${variablename%?} >

Re: Redirect to variable

2018-07-03 Thread Ilkka Virta
On 3.7. 15:43, Robert Durkacz wrote: On 5/21/18 Chet Ramey wrote: What you're asking for is syntactic sugar for: some-command > temp-file echo '#' >> temp-file variablename=$(< temp-file) rm -f temp-file variablename=${variablename%?} I would look at a sample implementation, possibly using

Re: Redirect to variable

2018-07-03 Thread Robert Durkacz
On 5/21/18 Chet Ramey wrote: > What you're asking for is syntactic sugar for: > some-command > temp-file > echo '#' >> temp-file > variablename=$(< temp-file) > rm -f temp-file > variablename=${variablename%?} > I would look at a sample implementation, possibly using mmap, if someone did one.

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

2018-07-03 Thread toww
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-