[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Docs typo, :- vs -
From: |
Alfred Agrell |
Subject: |
Docs typo, :- vs - |
Date: |
Fri, 31 Jan 2025 01:42:38 +0100 |
User-agent: |
Mozilla Thunderbird |
Hello
https://git.savannah.gnu.org/cgit/bash.git/tree/doc/bash.info#n1842
'${PARAMETER:-WORD}'
If PARAMETER is unset or null, the expansion of WORD is
substituted. Otherwise, the value of PARAMETER is substituted.
$ v=123
$ echo ${v-unset}
123
The heading says :-, but the example just says -. Which one is intended?
Or is it supposed to say that both are equivalent?
-- Alfred Agrell
- Docs typo, :- vs -,
Alfred Agrell <=