Re: how to (safely) escape an arbitrary string for use in PS1
From:
Christoph Anton Mitterer
Subject:
Re: how to (safely) escape an arbitrary string for use in PS1
Date:
Fri, 21 May 2021 00:02:03 +0200
User-agent:
Evolution 3.38.3-1
On Fri, 2021-05-21 at 06:08 +0900, Koichi Murase wrote:
> At least in my environments, \\$ is always $ with `promptvar' turned
> on, and \$ with `promptvar' turned off.
That's strange btw,... cause promptvars shouldn't affect \$, AFAIU.
(And I don't see this behaviour in my bash.)
Cheers,
Chris.