Re: [PATCH] t7508: avoid non-portable sed expression
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Sep 14, 2013, 17:50 UTC
- Message-ID
- <vpqppsbe1hy.fsf@anie.imag.fr>
- In-Reply-To
- <1379134032-83211-1-git-send-email-sunshine@sunshineco.com>
Eric Sunshine <sunshine@sunshineco.com> writes:
> strip_comments () {
> - sed "s/^\# //; s/^\#$//; s/^#\t/\t/" <"$1" >"$1".tmp &&
> + tab=' '
> + sed "s/^\# //; s/^\#$//; s/^#$tab/$tab/" <"$1" >"$1".tmp &&Sounds trivially right.
Sorry for breaking this.
-- Matthieu Moy http://www-verimag.imag.fr/~moy/