[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] ls: Add check_env_quoting() function
From: |
Pádraig Brady |
Subject: |
Re: [PATCH] ls: Add check_env_quoting() function |
Date: |
Fri, 22 Aug 2014 00:01:42 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 |
On 08/21/2014 09:09 PM, Yurij Goncharuk wrote:
> Hello!
>
> I still research code from 'coreutils' and find place where put some benefits.
> I offer replace block for setting quoting style(watching environment variable
> QUOTING_STYLE) with function as comment 'FIXME: put this in a function.' in
> src/ls.c. I don't sure about function name and required prototype, but my
> vision I introduce in patch. I successfully test this block throw tests in
> tests/ls/*.sh and 'make syntax-check'.
I pushed a variant of that since it does remove a FIXME comment.
There didn't seem to be an opportunity to conditionally call this new function,
so since it's not a functional change, I adjusted the commit summary to:
maint: ....
I also pulled the getenv() call inside the function since the error
message within the function referred to env variables, and the
env variable wasn't needed outside the function.
thanks!
Pádraig.