Re: [PATCH] contrib/git-resurrect.sh: do not write \t for HT in sed scripts
- From
Jakub Narębski <jnareb@gmail.com>
- Date
- Apr 2, 2017, 09:58 UTC
- Message-ID
- <7028b4eb-aa2b-aaf6-764d-cffab24a9968@gmail.com>
- In-Reply-To
- <xmqqd1cwwyr5.fsf_-_@gitster.mtv.corp.google.com>
W dniu 01.04.2017 o 06:14, Junio C Hamano pisze:
> Just like we did in 0d1d6e50 ("t/t7003: replace \t with literal tab
> in sed expression", 2010-08-12), avoid writing "\t" for HT in sed
> scripts, which is not portable.I guess it is not possible to use HT variable (similar to LF that we have in t/test-lib.sh, and which is defined by some scripts) set to literal tab
HT=" "
wouldn't work there, is it?
Using this variable would make literal tab character more visible.
-- Jakub Narębski