bug-gnulib
[Top][All Lists]
Advanced

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

Re: Move sha1 to C?


From: Paul Eggert
Subject: Re: Move sha1 to C?
Date: Mon, 23 May 2011 22:28:36 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10

[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

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