bash crashes with segfault if LC_CTYPE or LC_ALL not set

2023-11-28 Thread ralph
Configuration Information [Manually overridden, the bug happened a while ago]: Machine: i386 (32-bit), also occurs on amd64 (64 bit) OS: freebsd12.3-RELEASE-p6 Compiler: cc Compilation CFLAGS: unknown, from a pre-built FreeBSD package uname output: FreeBSD house.lr.los-gatos.ca.us 12.3-RELEASE-p6 F

Bug Report concerning backslash in bash5

2020-07-28 Thread Ralph Beckmann
4 (e.g. GNU bash, version 4.4.12(1)-release (arm-unknown-linux-gnueabihf)): $ BLA="1\.2"; echo 'x/'$BLA'/y/' x/1\.2/y/ I found some discussion around this bug, but it seems not to be finally fixed: https://lists.gnu.org/archive/html/bug-bash/2019-01/msg00087.htm

Possible bug in Bash Reference Manual - lists of commands

2019-05-22 Thread Ralph Jensen
The Bash Reference Manual, Edition 5 and earlier versions define lists of commands as follows: "A list is a sequence of one or more pipelines separated by one of the operators ..." (Bash Reference Manual 3.2.3). Shouldn't that say commands rather than pipelines? Ralph Jensen

bash Fails Glob Though No Glob Present.

2019-03-15 Thread Ralph Corderoy
ble-quotes, bash does pathname expansion, but it doesn't contain a *, ?, or [ as listed under `Pathname Expansion' in bash(1). -- Cheers, Ralph.

Enabling History Expansion with `set -H'.

2018-01-21 Thread Ralph Corderoy
o !!' 'set -H' ': bar' 'echo !!' | > bash !! !! $ I'd expect the second `!!' to be `: bar'. What am I misunderstanding? -- Cheers, Ralph. https://plus.google.com/+RalphCorderoy

Re: cd's Extraneous Arguments.

2016-04-16 Thread Ralph Corderoy
configuration so other users aren't caught out by it, and the damage that can follow. What's the argument for why CD_COMPLAINS behaviour isn't the default? The documentation doesn't match the current behaviour, matching instead POSIX in saying there's zero or one directories. Cheers, Ralph.

cd's Extraneous Arguments.

2016-04-15 Thread Ralph Corderoy
esn't it do this? If the behaviour isn't going to change then the documentation should be altered to match. Please keep me CC'd; I'm not subscribed. Cheers, Ralph.

Re: Built-in printf Sits Awkwardly with UDP.

2011-07-25 Thread Ralph Corderoy
Hi Chet, > On 7/22/11 10:38 AM, Ralph Corderoy wrote: > > On a related note, I can't interrupt this, e.g. Ctrl-C. > > > > printf '%-92233720368547758q.\n' foo > > That's interesting, since the fieldwidth (and precision) end up > getting

Re: bug#9129: Built-in printf Sits Awkwardly with UDP.

2011-07-22 Thread Ralph Corderoy
Hi Jim, > > On 07/20/2011 07:34 AM, Ralph Corderoy wrote: > > > BTW, the code for the built-in printf has a bug. For negative > > > field-widths it negates a negative integer without checking it > > > will fit. E.g. on this 64-bit machine > > > >

Re: Built-in printf Sits Awkwardly with UDP.

2011-07-22 Thread Ralph Corderoy
> OK, well for %b and %q bash's built-in printf calls it's own > printstr() and that does do things like `fw = -fw' without checking if > fw was already the largest negative. On a related note, I can't interrupt this, e.g. Ctrl-C. printf '%-9223372036854

Re: Built-in printf Sits Awkwardly with UDP.

2011-07-22 Thread Ralph Corderoy
ld always be flushed at the end of each printf command, to do otherwise would break too many things and be non-sensical. It also wouldn't match the behaviour of calling the /usr/bin printf. Cheers, Ralph. P.S. Please keep me CC'd.

Re: Built-in printf Sits Awkwardly with UDP.

2011-07-20 Thread Ralph Corderoy
rogram to check that, yet. OK, well for %b and %q bash's built-in printf calls it's own printstr() and that does do things like `fw = -fw' without checking if fw was already the largest negative. Cheers, Ralph.

Re: Built-in printf Sits Awkwardly with UDP.

2011-07-20 Thread Ralph Corderoy
Hi Bob, > Ralph Corderoy wrote: > > ... But a regular file ./foo on disk does look different and it > > still seems odd that > > printf '\n\n\n\n\n\n\n\n\n\n\n\n' >foo > > does a dozen one-byte write(2)s. > > But the only reason you know tha

Re: Built-in printf Sits Awkwardly with UDP.

2011-07-19 Thread Ralph Corderoy
sockets and pipes could look the same. But a regular file ./foo on disk does look different and it still seems odd that printf '\n\n\n\n\n\n\n\n\n\n\n\n' >foo does a dozen one-byte write(2)s. Still, at least it explains the UDP behaviour. Thanks again, Ralph.

Re: Built-in printf Sits Awkwardly with UDP.

2011-07-18 Thread Ralph Corderoy
Hi Chet, > > On 7/18/2011 10:14 AM, Ralph Corderoy wrote: > > > Is this happening because the built-in printf is using putchar(3) > > > in the PC() macro and stdio thinks file descriptor 1 is still to a > > > tty so it's persisting in line buffering? It wou

Built-in printf Sits Awkwardly with UDP.

2011-07-18 Thread Ralph Corderoy
() macro and stdio thinks file descriptor 1 is still to a tty so it's persisting in line buffering? It would seem nicer if fewer write(2)s were done when stdout isn't a tty, and not just for UDP use. Cheers, Ralph.

Ubuntu [Bug 791263] !$ works with `` but not $()

2011-06-01 Thread Ralph Corderoy
ly based on this list? If any Ubuntu bashers have the odd spare minute then https://bugs.launchpad.net/ubuntu/+source/bash/+bugs could do with a bit of love and attention. I've just marked invalid or fixed a few of the bugs on there but there's plenty left. Cheers, Ralph. Report fol