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: Lawrence Velázquez
Subject: Re: how to (safely) escape an arbitrary string for use in PS1
Date: Tue, 25 May 2021 00:56:02 -0400
User-agent: Cyrus-JMAP/3.5.0-alpha0-448-gae190416c7-fm-20210505.004-gae190416

On Mon, May 24, 2021, at 10:27 PM, Christoph Anton Mitterer wrote:
> On Mon, 2021-05-24 at 11:48 +0900, Koichi Murase wrote:
> >  Also, "-o" is obsoleted in POSIX.
> Interesting... I've never made it down to the rational section of test
> and till now never really thought about the issues with -a and -o.
> 
> They should probably put a bigger warning at the main section of the
> documentation.
> 
> Guess that's why bash doesn't even mention these operators nor ( ) in
> test?

It does.

https://www.gnu.org/software/bash/manual/html_node/Bourne-Shell-Builtins.html#index-test

-- 
vq



reply via email to

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