[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: |
Chet Ramey |
Subject: |
Re: how to (safely) escape an arbitrary string for use in PS1 |
Date: |
Tue, 25 May 2021 09:58:24 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 |
On 5/24/21 10:27 PM, Christoph Anton Mitterer 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.
The `-a' and `-o' operators are included in the `test' builtin
documentation. They're not deprecated, per se -- they don't really come
into play unless test is given four or more arguments.
Guess that's why bash doesn't even mention these operators nor ( ) in
test?
It does.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
- Re: how to (safely) escape an arbitrary string for use in PS1, (continued)
- Re: how to (safely) escape an arbitrary string for use in PS1, Christoph Anton Mitterer, 2021/05/20
- Re: how to (safely) escape an arbitrary string for use in PS1, Koichi Murase, 2021/05/20
- Re: how to (safely) escape an arbitrary string for use in PS1, Koichi Murase, 2021/05/20
- Re: how to (safely) escape an arbitrary string for use in PS1, Christoph Anton Mitterer, 2021/05/21
- Re: how to (safely) escape an arbitrary string for use in PS1, Koichi Murase, 2021/05/21
- Re: how to (safely) escape an arbitrary string for use in PS1, Christoph Anton Mitterer, 2021/05/23
- Re: how to (safely) escape an arbitrary string for use in PS1, Koichi Murase, 2021/05/23
- Re: how to (safely) escape an arbitrary string for use in PS1, Christoph Anton Mitterer, 2021/05/24
- Re: how to (safely) escape an arbitrary string for use in PS1, Lawrence Velázquez, 2021/05/25
- Re: how to (safely) escape an arbitrary string for use in PS1, Christoph Anton Mitterer, 2021/05/25
- Re: how to (safely) escape an arbitrary string for use in PS1,
Chet Ramey <=
- Re: how to (safely) escape an arbitrary string for use in PS1, Chet Ramey, 2021/05/24
- Re: how to (safely) escape an arbitrary string for use in PS1, Christoph Anton Mitterer, 2021/05/20