Re: How can redirection operator aka ">" open output in append instead of ordinary write mode?

2019-05-16 Thread howaboutsynergy
‐‐‐ Original Message ‐‐‐ On Thursday, May 16, 2019 10:57 PM, Chet Ramey wrote: > On 5/16/19 4:25 PM, howaboutsyne...@protonmail.com wrote: > > > Hi. Would bash devs even consider replacing the current behaviour of ">" > > (redirection) to do the equivalent of the following(under the ho

Re: How can redirection operator aka ">" open output in append instead of ordinary write mode?

2019-05-16 Thread Chet Ramey
On 5/16/19 4:25 PM, howaboutsyne...@protonmail.com wrote: > Hi. Would bash devs even consider replacing the current behaviour of ">" > (redirection) to do the equivalent of the following(under the hood) ? I doubt it. That's not how it's defined to behave, and there's no good reason to do it. >

How can redirection operator aka ">" open output in append instead of ordinary write mode?

2019-05-16 Thread howaboutsynergy
Hi. Would bash devs even consider replacing the current behaviour of ">" (redirection) to do the equivalent of the following(under the hood) ? When: `command > $somewhere` then actually do(under the hood): : > $somewhere command >> $somewhere ie. create&truncate file, then open it in append m

Re: joined command lines in history by LF

2019-05-16 Thread Chet Ramey
On 5/16/19 7:57 AM, HIROSE Masaaki wrote: > Bash Version: 4.4 > Patch Level: 19 > Release Status: release > > Description: > > I set the following environment variable: > - export HISTTIMEFORMAT='%Y-%m-%d %T ' > to show timestamp in history > - export PROMPT_COMMAND='history -a; history

Re: Regression in --enable-minimal-config

2019-05-16 Thread Miro Kropáček
On Tue, 14 May 2019 at 23:20, Chet Ramey wrote: > That's similar to the report Martijn cited, but not the same. The right one is > > http://lists.gnu.org/archive/html/bug-bash/2016-11/msg00031.html > > and the right commit is > > http://git.savannah.gnu.org/cgit/bash.git/commit/?h=devel&id=78a3f8a

joined command lines in history by LF

2019-05-16 Thread HIROSE Masaaki
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-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE