help-bash
[Top][All Lists]
Advanced

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

Re: What is REDIR_WORD?


From: Koichi Murase
Subject: Re: What is REDIR_WORD?
Date: Tue, 11 May 2021 01:52:01 +0900

2021年5月10日(月) 23:15 Peng Yu <pengyu.ut@gmail.com>:
> In regex, is it just the following?
>
> {[_a-zA-Z][_a-zA-Z0-9]+}

Maybe you have already noticed after looking at parse.y, but it also
includes the cases

  {arr[index]}

and more complicated

  {arr[$(echo 123)]}

2021年5月11日(火) 0:15 Peng Yu <pengyu.ut@gmail.com>:
>   if (token[0] == '{' && token[token_index-1] == '}' &&
>       (character == '<' || character == '>'))
>
> So, '{' and '}' above refers to '{' '}' in '{fd}'? `character` refers
> to `<` in `{fd}<` or `>` in `{fd}>`?

Yes.



reply via email to

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