bug-bash
[Top][All Lists]
Advanced

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

Re: Documentation inconsistency (?)


From: Andreas Kähäri
Subject: Re: Documentation inconsistency (?)
Date: Thu, 6 Feb 2025 15:51:03 +0100

Je Thu, Feb 06, 2025 at 11:26:08AM +0100, Alexis Reynouard skribis:
> Hello,
> 
> This concern:
> https://www.gnu.org/software/bash/manual/bash.html#Shell-Parameter-Expansion
> 
> In the bash documentation, section “shell parameter expansion,” in the
> paragraph “${parameter:-word},” the example given uses
>    ${parameter-word}
> which is a Bourne Shell compatible expansion but behaves differently
> for defined but empty parameters. For greater clarity, shouldn't we
> write the following documentation (Please excuse the RST syntax):
> 
> ``${parameter:-word}``
> ----------------------
[cut]


This was recently discussed:

https://lists.gnu.org/archive/html/bug-bash/2025-01/msg00144.html



-- 
Andreas (Kusalananda) Kähäri
Uppsala, Sweden

.



reply via email to

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