Re: bug-report: debug trap messes up pipestatus if containing command substitution

2019-05-28 Thread Chet Ramey
On 5/23/19 5:11 PM, Hengyang Zhao wrote: > Awesome! Could you please cc the fix to this thread once it's done? Thank you! It's in the devel branch. I've attached the relevant piece. This is more confirmation that it was a mistake to apply the DEBUG trap to simple commands in pipelines. -- ``Th

Re: loadables/rm not POSIX compliant

2019-05-28 Thread Chet Ramey
On 5/28/19 12:15 PM, Eli Schwartz wrote: >> Might be better to ask about this on a Debian mailing list. > > Arch Linux provides the builtins in the main bash package, and we too > have most but not all. > > Looking at examples/loadables/Makefile.in, only the ones listed in > ALLPROG are installe

Re: loadables/rm not POSIX compliant

2019-05-28 Thread Eli Schwartz
On 5/28/19 12:09 PM, Greg Wooledge wrote: > On Wed, May 29, 2019 at 02:04:10AM +1000, G. Branden Robinson wrote: >> In fact, the bash-doc package contains dozens of examples. However, I >> don't see anything named "rm". (I'm looking at bash-doc 5.0-4 in Debian >> 10, "buster".) > > Looks like th

Re: loadables/rm not POSIX compliant

2019-05-28 Thread Greg Wooledge
On Wed, May 29, 2019 at 02:04:10AM +1000, G. Branden Robinson wrote: > In fact, the bash-doc package contains dozens of examples. However, I > don't see anything named "rm". (I'm looking at bash-doc 5.0-4 in Debian > 10, "buster".) Looks like they're supposed to be in bash-builtins. wooledg:~$

Re: loadables/rm not POSIX compliant

2019-05-28 Thread G. Branden Robinson
At 2019-05-28T17:01:52+0200, Tim Rühsen wrote: > Since distributions like Debian doesn't deliver binaries from > examples/, That doesn't sound accurate to me. The Debian Policy Manual, §12.6, encourages the shipping of examples: https://www.debian.org/doc/debian-policy/ch-docs.html#examples In

Re: loadables/rm not POSIX compliant

2019-05-28 Thread Tim Rühsen
On 5/28/19 4:38 PM, Chet Ramey wrote: > On 5/28/19 8:32 AM, Tim Rühsen wrote: > >> configure: error: Your 'rm' program is bad, sorry. >> # >> >> Is it possible to fix the loadable 'rm' command ? >> Let me know if you want me to provide a patch. > > Well, it's hard to know exactly what the

Re: loadables/rm not POSIX compliant

2019-05-28 Thread Chet Ramey
On 5/28/19 11:01 AM, Tim Rühsen wrote: > Since distributions like Debian doesn't deliver binaries from examples/, > how can we get the rm loadable into builtins/ ? (What is missing that > has to be done). That's up to Debian. I'm not going to make it a full-fledged builtin. -- ``The lyf so sho

Re: bash bug - unexpect file deleted using rm command

2019-05-28 Thread Andreas Kusalananda Kähäri
On Tue, May 28, 2019 at 04:43:42PM +0200, Andreas Kusalananda Kähäri wrote: > On Tue, May 28, 2019 at 11:56:04AM +, r...@minigeek.srve.com wrote: > > Configuration Information [Automatically generated, do not change]: > > Machine: x86_64 > > OS: linux-gnu > > Compiler: gcc > > Compilation CFLAG

Re: loadables/rm not POSIX compliant

2019-05-28 Thread Eli Schwartz
On 5/28/19 10:38 AM, Chet Ramey wrote: > On 5/28/19 8:32 AM, Tim Rühsen wrote: > >> configure: error: Your 'rm' program is bad, sorry. >> # >> >> Is it possible to fix the loadable 'rm' command ? >> Let me know if you want me to provide a patch. > > Well, it's hard to know exactly what th

Re: bash bug - unexpect file deleted using rm command

2019-05-28 Thread Chet Ramey
On 5/28/19 7:56 AM, r...@minigeek.srve.com wrote: > Bash Version: 4.1 > Patch Level: 2 > Release Status: release > > Description: > I deleted the file .DS_Store fom a fat32 partition as root. bash > properly warned me and I answered y which deleted that file. > A second different fi

Re: bash bug - unexpect file deleted using rm command

2019-05-28 Thread Andreas Kusalananda Kähäri
On Tue, May 28, 2019 at 11:56:04AM +, r...@minigeek.srve.com wrote: > 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_MACHTY

Re: loadables/rm not POSIX compliant

2019-05-28 Thread Chet Ramey
On 5/28/19 8:32 AM, Tim Rühsen wrote: > configure: error: Your 'rm' program is bad, sorry. > # > > Is it possible to fix the loadable 'rm' command ? > Let me know if you want me to provide a patch. Well, it's hard to know exactly what the problem is here, despite the volumes of text prod

Re: Wanted: better(more specific) error msgs?

2019-05-28 Thread Greg Wooledge
On Sat, May 25, 2019 at 06:21:27PM -0700, L A Walsh wrote: > Problem happened when I re-used a var that had earlier had the > integer property set on the variable. > > declare -i a=123 That's (part of) why I strongly recommend that nobody ever use that -i flag. > then later > a="▯" > -bash: ▯: s

bash bug - unexpect file deleted using rm command

2019-05-28 Thread root
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-redhat-linux-gnu' -DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/share/locale'

loadables/rm not POSIX compliant

2019-05-28 Thread Tim Rühsen
Hi, I just built bash from git master (3ba697465bc74fab513a26dea700cc82e9f4724e) and enabled the 'rm' loadable via enable -f ~/src/bash/examples/loadables/rm rm Now, the next './configure' (autotools) says: # rm: usage: rm [-rf] file ... Oops! Your 'rm' program seems unable to run withou

previous/next-screen-line (was: readline: How to unbind _all_ keys)

2019-05-28 Thread Henning
On 25/05/2019 11:14, Henning wrote: On 24/05/2019 17:16, Chet Ramey wrote: That's not in the distributed version of bash-5.0. If you're applying an older cygwin patch, have you tried just building the distributed version? Let's make sure that works. Bang! It does. So sorry that I didn't have