Re: [PATCH v4 2/4] *.[ch]: remove extern from function declarations using sed
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 24, 2019, 04:56 UTC
- Message-ID
- <xmqq8sw02e7y.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <0ebda4725297df64661bc6749b1a1c4c93cb76e0.1556062365.git.liu.denton@gmail.com>
Denton Liu <liu.denton@gmail.com> writes:
Show 8 quoted lines
> There has been a push to remove extern from function declarations.
> Finish the job by removing all instances of "extern" for function
> declarations in headers using sed.
>
> This was done by running the following on my system with sed 4.2.2:
>
> $ git ls-files \*.{c,h} | \
> grep -v ^compat/ | \Lose the backslash. Your shell knows its own syntax sufficiently well, and when you end a line with a pipe, it knows that you haven't finished speaking to it and waits for you to give the command downstream of the pipe, without being told that you haven't finished with a backslash.