bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unexpected Quick Substitution in string literals


From: Greg Wooledge
Subject: Re: Unexpected Quick Substitution in string literals
Date: Wed, 13 Dec 2023 07:24:45 -0500

On Wed, Dec 13, 2023 at 10:50:16AM +0530, Sundeep Agarwal wrote:
> $ echo "fig
> ^mango"
> bash: :s^mango": substitution failed

I can confirm this happens in every version of bash, at least back to
bash-2.05b which is as far as I can go, but only when history expansion
is enabled (set -H or set -o histexpand).

I think this is intended behavior, although I'm someone who routinely
disables histexpand, so I'm not as familiar with all of its features as
others might be.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]