bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH] maint: indent with spaces, not TABs, and add a rule to check


From: Jim Meyering
Subject: Re: [PATCH] maint: indent with spaces, not TABs, and add a rule to check this
Date: Tue, 05 Jul 2011 11:51:00 +0200

Bruno Haible wrote:
> Hi Jim,
>
> Jim Meyering wrote:
>> It is trivial to avoid leading TABs in a script
>> that emits a Makefile snippet with leading TABs.
>> Here's one way that is perhaps minimally invasive:
>> The change replaces each explicit leading TAB with 8 leading
>> spaces and converts each "cat" to a sed command that performs
>> the desired 8-sp-to-TAB mapping.
>
> Thanks for the suggestion. It fixes the "make check" complaint.
> But the major problem with tabs in .m4 files is that it can get
> broken in the future by someone who accidentally untabifies the entire
> file. If we're going to add complexity here, I would much prefer that
> it gets rid of this problem.
>
> In other words, do you know how to put a tab into a shell variable,
> without writing a tab in the source file? For newline, we write
>
> nl='
> '
>
> tab=`printf '\t'`
>
> appears to work. Is it portable?

Yes, that is what I would use.



reply via email to

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