Re: Could bash do what make does?

2016-12-03 Thread Robert Durkacz
On Fri, Dec 02, 2016 Greg Wooledge wrote: "For starters, make is *older* than bash, by over a decade. "https://en.wikipedia.org/wiki/Make_%28software%29 says that make originated at Bell Labs in April 1976. "https://en.wikipedia.org/wiki/Bash_%28Unix_shell%29 says that the first "beta version of ba

Filename completion causes doubling of initial ':' character

2016-12-03 Thread Ravi (Tom) Hale
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='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu' -DCONF_VENDOR='unknown' -DLOCALEDIR='/usr/share/loca

Re: Filename completion causes doubling of initial ':' character

2016-12-03 Thread Andreas Schwab
On Dez 03 2016, "Ravi (Tom) Hale" wrote: > Description: > > Given a filename called ':example' > When the user enters 'command :' and hits > Then the completion of the filename gets a doubled colon, specifically: > ':\:example' Make sure you don't have any custom completion functio

Re: Filename completion causes doubling of initial ':' character

2016-12-03 Thread Chet Ramey
On 12/3/16 6:41 AM, Ravi (Tom) Hale wrote: > Bash Version: 4.4 > Patch Level: 5 > Release Status: release > > > Description: > > Given a filename called ':example' > When the user enters 'command :' and hits > Then the completion of the filename gets a doubled colon, specifically:

Re: Could bash do what make does?

2016-12-03 Thread Eduardo Bustamante
"build market"? What are you talking about? make was created with the sole purpose of build automation. The shell was created to provide a "human interface" to computer operators. These are very specific and different purposes. Are you going to start asking next to re-implement vi inside bash? to r

Re: command substitution bug

2016-12-03 Thread Chet Ramey
On 12/2/16 6:23 AM, parasite parasite wrote: > GNU bash, version 4.3.46(1)-release (x86_64-unknown-linux-gnu) > GCC: (GNU) 6.1.1 > On archlinux 4.4.27-1-lts > > Hello, today i tried something simple but it leads to what seems to be a bug. > > $ var="$(for ((i=0;i<$#;i++));do echo line;done)" > le

Re: bash tests failing when compiled with --enable-xpg-echo-default=yes

2016-12-03 Thread Chet Ramey
On 12/1/16 5:44 PM, Vladimir Marek wrote: > Because of this setting the tests are failing. I am attaching a patch we > are using for workaround to show where the problems are seen. I used > 'echo -E' when investigating, but "printf '%s\n'" seems to be more > appropriate. If there is interest I'm m

Re: bash tests failing when compiled with --enable-xpg-echo-default=yes

2016-12-03 Thread Chet Ramey
On 12/2/16 6:07 AM, Vladimir Marek wrote: > And second patch we use because of xpg-echo. Would it have sense to have > it included, or maybe stop the tests completely instead? You could just have turned off the xpg_echo option instead of going through a convoluted test (which just emulates `shopt

Re: Could bash do what make does?

2016-12-03 Thread John McKown
On Sat, Dec 3, 2016 at 11:07 AM, Eduardo Bustamante wrote: > "build market"? What are you talking about? make was created with the > sole purpose of build automation. The shell was created to provide a > "human interface" to computer operators. These are very specific and > different purposes. Ar

[4.4.5] trouble declaring readonly array variables

2016-12-03 Thread Laur Aliste
Hi, upgraded bash from GNU bash, version *4.3.30(1)-release* (x86_64-pc-linux-gnu) to *4.4.5(1)-release* and noticed the *readonly* array variables fail to be defined with init values. See sample snippet: o() { local i j readonly i=($1) readonly j=(1 2 3) echo "passed args expande