Re: [PATCH 3/4] Ensure that no C source file uses TABs for indentation

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

 



"Richard W.M. Jones" <rjones@xxxxxxxxxx> wrote:
> On Thu, Apr 10, 2008 at 05:45:19PM +0200, Jim Meyering wrote:
>
> +1 but shame that egrep doesn't support some notion of \t for
> tab or the like:
>
>> +	@grep -lE '^ *	' /dev/null					\

Yeah, that's annoying.  It makes me want to use Perl sometimes.
However, GNU grep does have a --perl-regexp (-P) option, so
this would work,

    $ printf 'x\t'|grep -P '\t'
    x

but it's not portable enough.  Even among systems with recent
GNU grep, some compile it out, e.g. Debian's grep says this:

    grep: Support for the -P option is not compiled into this --disable-perl-regexp binary

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]