NetBSD-Bugs archive

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

standards/49435: Remove trailing blank characters from the code-base



>Number:         49435
>Category:       standards
>Synopsis:       Remove trailing blank characters from the code-base
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    standards-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 30 15:55:00 +0000 2014
>Originator:     Kamil Rytarowski
>Release:        NetBSD-current
>Organization:
>Environment:
NetBSD compaq 7.99.1 NetBSD 7.99.1 (GENERIC) #0: Fri Nov  7 22:04:53 CET 2014  kamil@chieftec:/tmp/netbsd-tmp/sys/arch/amd64/compile/GENERIC amd64
>Description:
NetBSD's code-base is polluted with trailing blank characters (mostly space, \t).

Please clean it.
>How-To-Repeat:
N/A
>Fix:
find . -name '*.[ch]' -exec sed -i -E 's/[[:blank:]]+$//' {} \;

or

find . -name '*.[ch]' -exec perl -pli -e "s/\s*$//" {} \;

Use it also for sys, bin, sbin etc.



Home | Main Index | Thread Index | Old Index