Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 29 May 2013 11:55:45 +0530
From: Sayantan Datta <std2048@...il.com>
To: john-dev@...ts.openwall.com
Subject: Re: pre-commit hooks (was: Unify internal form of mscash2 hashes?)

Hi ,
On Wed, May 29, 2013 at 11:38 AM, magnum <john.magnum@...hmail.com> wrote:

> BTW that latter line probably needs -r:
>
> sed -ri 's/[[:space::]]+$//' "$FILE"
>
> Another problem with your script is that is will bug out if a file name
> contains spaces. To fix that you need to change IFS. But I (and many much
> more clever guys than me) still recommend to use a hook that just warns,
> not tries to fix anything.
>

As you said, I configured my editor to remove white spaces whenever it
opens a file. Much easier indeed!!

Regards,
Sayantan

[ CONTENT OF TYPE text/html SKIPPED ]

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ