Re: Maybe off topic: Where is bash gesture ${X=Y} described ?

2024-07-24 Thread Max Nikulin
On 24/07/2024 20:50, Greg Wooledge wrote: Everyone skips over the sentence that begins with "Omitting the colon". Every time we try to tell Chet, "Hey, man, please add examples that show BOTH syntaxes", he blows us off, because this is the way POSIX documents it. If it's good enough for POSIX,

Re: Maybe off topic: Where is bash gesture ${X=Y} described ?

2024-07-24 Thread tomas
On Wed, Jul 24, 2024 at 09:50:36AM -0400, Greg Wooledge wrote: [...] > Everyone skips over the sentence that begins with "Omitting the colon". Thanks for this one. I know /I/ did for long enough. Greg, this place would be a lot less helpful... > Every time we try to tell Chet, "Hey, man, pleas

Re: Maybe off topic: Where is bash gesture ${X=Y} described ?

2024-07-24 Thread Thomas Schmitt
Hi, i wrote: > > maybe i am just too dumb to read the manual, or maybe i made an > > archeological discovery in the shells we use. Greg Wooledge wrote: > Everyone skips over the sentence that begins with "Omitting the colon". Oh well. Too dumb and not alone. I did read the sentence immediately

Re: Maybe off topic: Where is bash gesture ${X=Y} described ?

2024-07-24 Thread Greg Wooledge
On Wed, Jul 24, 2024 at 15:33:11 +0200, Thomas Schmitt wrote: > GRUB's test scripts often show this gesture > > : "${TMPDIR=/tmp}" > > Well known and described is > ${X:=Y} > which assigns a default value to variable X if it is empty (man bash > says: "If [...] unset or null"). > Also known a

Maybe off topic: Where is bash gesture ${X=Y} described ?

2024-07-24 Thread Thomas Schmitt
Hi, maybe i am just too dumb to read the manual, or maybe i made an archeological discovery in the shells we use. I came to a strange shell gesture which i find neither in man bash nor man dash. Nevertheless it works the same in both shells. GRUB's test scripts often show this gesture : "${TM