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: Paxsali
Subject: Re: $${a,b} brace expansion flaw.
Date: Sun, 21 Jan 2024 17:20:15 +0100

These are the valid forms:

echo "$$"{a,b}
echo ${$}{a,b}
echo $$""{a,b}
echo $$''{a,b}

To produce PIDa PIDb.

alex xmb sw ratchev <fxmbsw7@gmail.com> schrieb am So., 21. Jan. 2024,
12:10:

> On Sun, Jan 21, 2024, 04:18 Dennis Williamson <dennistwilliamson@gmail.com
> >
> wrote:
>
> >
> >
> > 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
> >
>
> thanks ..
>
> --
> > Visit serverfault.com to get your system administration questions
> > answered.
> >
>


reply via email to

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