[Dropping emacs-devel as this is really a gnulib thing.]

On 05/23/11 22:09, Thien-Thi Nguyen wrote:
>    +                sed_extract_condition2='/^ *'"$escaped_dep"' *\[.*\] *$/{
>    +                  s/^ *'"$escaped_dep"' *\[\(.*\)\] *$/\1/p
>    +                }'
> 
> IIUC the curly braces are optional if they contain only one command.
> Is that not the case everywhere?

You're right.  I used curly braces because
it's easier to read a complicated command indented
rather than jammed together into a single line.

Come to think of it, it'd be even easier to read this way:

  sed_extract_condition2='
    /^ *'"$escaped_dep"' *\[.*\] *$/{
      s/^ *'"$escaped_dep"' *\[\(.*\)\] *$/\1/p
    }
  '

Reply via email to