On 1/13/22 7:35 AM, Koichi Murase wrote:
The current behavior is as follows:
$ bash-dev --norc
$ shopt | grep patsub
patsub_replacement on
$ var=ABCDE value='(K&R)'
$ echo "${var//C/$value}"
AB(KCR)DE
$ echo "${var//C/"$value"}" # (My suggestion of "quoting &")
AB(KCR)DE # (the cur
On Mon, Jan 17, 2022 at 09:10:59PM +0100, Girod Valentin wrote:
> Description:
> when using date -d @customNumber +%H,
> it returns 1 more hour that the expected hour.
First thing to note: date(1) is not part of bash. It's part of GNU
coreutils, if you're on a GNU/Linux system. You're re
On 1/17/22 3:10 PM, Girod Valentin wrote:
Bash Version: 5.0
Patch Level: 17
Release Status: release
Description:
when using date -d @customNumber +%H,
it returns 1 more hour that the expected hour.
Repeat-By:
date -d @0 +%T
returns: 01:00:00 (WHAT THE FUCK)
This is not a b
Configuration Information:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -g -O2
-fdebug-prefix-map=/build/bash-a6qmCk/bash-5.0=.
-fstack-protector-strong -Wformat -Werror=format-security -Wall
-Wno-parentheses -Wno-format-security
uname output: Linux valentin-Aspire-F5 5.11.0-
On 1/14/22 6:42 PM, Joakim Lindblad wrote:
Bash Version: 5.1
Patch Level: 16
Release Status: release
Description:
Using the default `shopt -s cmdhist; shopt -u lithist`,
multi-line commands which include completely empty lines (e.g.
copied from a spaciously formatted script)