help-bash
[Top][All Lists]
Advanced

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

Re: how to (safely) escape an arbitrary string for use in PS1


From: Koichi Murase
Subject: Re: how to (safely) escape an arbitrary string for use in PS1
Date: Fri, 21 May 2021 07:48:07 +0900

2021年5月21日(金) 7:44 Koichi Murase <myoga.murase@gmail.com>:
> PS1='\\\$ ' -> '\# ' -> '# '
> PS1='\\\\\\\$ ' -> '\\\# ' -> '\# '

Sorry these lines must have been

PS1='\\\$ ' -> '\# ' -> '\# '
PS1='\\\\\\\$ ' -> '\\\# ' -> '\\# '

because '\#' will not be processed.

--
Koichi



reply via email to

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