Package: initscripts
Severity: wishlist
initscripts currently quite inconsistent in programming style and
formatting, using mix of tabs and spaces, test and [ ] and so on.
On Fri, Feb 15, 2019 at 05:27:26PM +0000, Dmitry Bogatov wrote:
Package: initscripts
Severity: wishlist
initscripts currently quite inconsistent in programming style and formatting, using mix of tabs and spaces, test and [ ] and so on.
I agree we should do this for forky cycle. Can we agree the style we
want?
As a starter, I suggest (debian/src/README.style)
I agree we should do this for forky cycle. Can we agree the style we
want?
As a starter, I suggest (debian/src/README.style)
partially off topic but I think it will help if we recommend to use
the /lib/init/init-d-script since by using it you decrease the amount
of code that can display inconsistent style.
Scripts should follow the style produced by shfmt(1)
- case indented
- prefer '[ ]' to test(1) or builtin
partially off topic but I think it will help if we recommend to use
the /lib/init/init-d-script since by using it you decrease the amount
of code that can display inconsistent style.
On Mon, Mar 17, 2025 at 07:12:27PM +0100, Lorenzo wrote:
partially off topic but I think it will help if we recommend to use
the /lib/init/init-d-script since by using it you decrease the amount
of code that can display inconsistent style.
Yes. the example LSB script has been init-d-script based for a while.
This question is really about the scripts packaged in bin:initscripts. I
am not taking on rewriting them all for init-d-script!
However I think for any new scripts and in case someone likes to
contribute adapted scripts a mention of init-d-script in README.style
would be good.
Scripts should follow the style produced by shfmt(1)FWIW, never heard of that tool.
Don’t indent case, it’s useless and just adds clutter.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 482 |
Nodes: | 16 (0 / 16) |
Uptime: | 69:12:35 |
Calls: | 9,571 |
Calls today: | 2 |
Files: | 13,663 |
Messages: | 6,142,216 |