On 6/19/25 7:16 PM, Jeff Ketchum wrote:
I think that helps me understand the differences better, and what I am
seeing.
Though It doesn't seem like it is completely consistent, and not what I
expected when using a variable with specific layout. (and also breaking
change enabled by default)
examp
I think that helps me understand the differences better, and what I am
seeing.
Though It doesn't seem like it is completely consistent, and not what I
expected when using a variable with specific layout. (and also breaking
change enabled by default)
example, if i change the replacement to '\a'
it
On Thu, Jun 19, 2025, at 6:10 PM, Lawrence Velázquez wrote:
> This changed in bash 5.2:
>
> There is a new shell option, `patsub_replacement'. When
> enabled, a `&' in the replacement string of the pattern
> substitution expansion is replaced by the portion of the
> string
On Thu, Jun 19, 2025, at 5:28 PM, Jeff Ketchum wrote:
> $ cat replacestring.sh
> original_string="1|2|3|4"
> replace_string=':\\'
> echo "original: ${original_string} replace:${replace_string}"
> echo "unquoted ${original_string/2/${replace_string}}"
> echo "quoted ${original_string/2/"${replace_
I noticed a strange issue with some variable replacement text getting
replaced in a weird way.
It may be intentional. I just want to understand the differences and if it
is, or if its a newer bug.
Originally i was doing this to prepend data to an array like
"${array_[@]/#/${variable}}"
I simplifie