Re: Segfault with set -o emacs in -c

2022-12-19 Thread Chet Ramey
On 12/18/22 1:35 AM, Harald van Dijk wrote: Bash Version: 5.2 Patch Level: 12 Release Status: release Description: bash segfaults if 'set -o emacs' is run when it is executing a command string. You might win the prize for oldest bug reported. This is easily over 30 years old. I suppose

Re: [PATCH] loadables/sync: allow fsync of individual files like GNU coreutils

2022-12-19 Thread Chet Ramey
On 12/18/22 7:52 AM, Chris Webb wrote: It's often useful to fsync an individual file from a shell script, for example after writing a log entry which needs to be safely persisted. Doing so with a loadable builtin is much less expensive than spawning an external command just to call fsync(2).

Re: compgen stops processing backslashes after any call to bind

2022-12-19 Thread of1
Well, it is said that directories sometimes harbor more than one item :) Fabien (of1) #!/usr/bin/env bash [[ -e "/tmp/Dir\\A" ]] && exit 2 mkdir -p /tmp/Dir\\A/dirB/ /tmp/Dir\\A/dir\\C/ touch /tmp/Dir\\A/fileA "/tmp/Dir\\A/file\\ B" f_comp() { local CP CPR="${1%\/*}"