help-bash
[Top][All Lists]
Advanced

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

Re: $${a,b} brace expansion flaw.


From: Dennis Williamson
Subject: Re: $${a,b} brace expansion flaw.
Date: Sat, 20 Jan 2024 21:18:19 -0600

On Sat, Jan 20, 2024 at 4:42 PM alex xmb sw ratchev <fxmbsw7@gmail.com>
wrote:

> very weird behavior
> prolly cause it says , for once/beginning and ,, all
> but thers a logic err
> if i have a=NaNaNaNa and just wanna change first two N s lowercase ,
> ${a,NaN} sadly fails ( on more than one char )
> where the wont be a ${a,,NaNa} version as its invalid
> .. small detail
>
>
>From the man page:

    The pattern should not attempt to match more than one character

-- 
Visit serverfault.com to get your system administration questions answered.


reply via email to

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