Re: Segfault with set -o emacs in -c

2022-12-18 Thread Emanuele Torre
On Sun, Dec 18, 2022 at 06:35:45AM +, Harald van Dijk wrote: > The assumption here, that if (interactive), input is coming from > stdin, does not hold when running bash -ic. > > Repeat-By: > bash -ic 'set -o emacs' Wow, this is a very old bug. I think this 2.04 bug report fr

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

2022-12-18 Thread Chris Webb
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). The sync command in GNU coreutils can be run

Re: for loop goes to stopped job when Ctrl+C is pressed

2022-12-18 Thread Andreas Schwab
On Dez 17 2022, ks1322 ks1322 wrote: > When for loop output is piped to less and Ctrl+C is pressed, bash creates > unexpected stopped job That's because the process group receives SIGTTIN because less tries to read from the terminal while it doesn't own it. -- Andreas Schwab, sch...@linux-m68k.