[Buildroot] [PATCH] openssh: fix tab/spacing in init script

Danomi Manchego danomimanchego123 at gmail.com
Wed Aug 21 13:39:42 UTC 2013


On Tue, Aug 20, 2013 at 11:39 PM, Thomas De Schampheleire <
patrickdepinguin at gmail.com> wrote:

> I haven't checked if there are such problems, but have you considered
> checking all init scripts for the same type of problems and fixing them in
> this same patch?
>

Thomas,

I looked through the other init scripts.  There's some variation, mostly in:

* Tabs vs spacing.
* Where spaces are used instead of tabs, sometimes two spaces are used per
level, other times four.
* Indentation of start/stop under the case "$1"  /  esac clause.
    * Some of the start/stop begin in the first column, aligned with 'case'.
    * Some of them have two spaces, followed by actions offset with a tabs.
    * Some of them have two spaces, followed by actions offset with a
sapces.
    * Some are offset with tab, followed by actions offset with two tabs.

So I took the approach of leaving that part alone, and just fixing the
lines that were offset by a mix of spaces and tabs, since that seemed
clearly bad.

I'd be willing to go through all of them and make them uniform, if
recommended guidelines can be stated with regards to the above variations.
 Tabs are tempting only because it's a single character in text files that
go in the target - otherwise, I'm normally in the tabs-are-evil camp, since
thing which start out with tabs tend get modified with spaces over time,
and because editor rendering of tab width can vary.  So I'd be willing to
go either way.

Danomi -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildroot.org/pipermail/buildroot/attachments/20130821/374eb0f9/attachment-0001.html>


More information about the buildroot mailing list