bug-bash
[Top][All Lists]
Advanced

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

Re: bash-5.1.8 does not compile anymore on HP-UX due to invalid shell sy


From: L A Walsh
Subject: Re: bash-5.1.8 does not compile anymore on HP-UX due to invalid shell syntax
Date: Tue, 17 Aug 2021 07:30:45 -0700
User-agent: Thunderbird 2.0.0.24 (Windows/20100228)



On 2021/08/17 04:02, Osipov, Michael (LDA IT PLM) wrote:
Folks,

this is basically the same issue as I reported in readline: https://lists.gnu.org/archive/html/bug-readline/2021-08/msg00000.html

The bad hunk seems not to be POSIX shell compliant.
I think your eyes are fooling you.  I looked at the link below, and it
has both ":+" and "+".
The table on that page has 8 lines after the title line, right?

If you would think of the 8 lines as 4 pairs, like:

lines   pair
1+2     1
3+4     2
5+6     3
7+8     4

The pairs are about 4 related operations.  If you let P = the oPerator
then the odd lines are about ':P' and the even lines are about 'P' (no colon).
The Pairs from 1-4 are about the operators: '-', '=', '?', '+'

Pair 4 shows effects of ':+' and '+'.

Isn't that what you are talking about?
Yeah -- w/o the ':' looks a bit 'off', but it has a separate meaning
and has been around for a long time.

(I first encountered it when porting 1980's era scripts)





reply via email to

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