Re: [PATCH] KERNEL BUILD: Make the setlocalversion scriptPOSIX-compliant.

From: MichaÅ GÃrny
Date: Tue Jul 20 2010 - 17:17:11 EST


On Tue, 20 Jul 2010 16:00:29 +0200
Michal Marek <mmarek@xxxxxxx> wrote:

> > There is one 'bashism' left which I wasn't able to fix -- the use of
> > 'test -ef'. I'm not aware of any POSIX equivalent of that.
>
> Me neither, POSIX does not know stat(1) AFAICS. Does it matter in real
> life? Is there a distro that installs posh or a similarly strict shell
> as /bin/sh? It seems to work with dash after your changes.

I am not aware of any, and it does work with dash indeed. That's why I
have submitted the patch. I left that notice mostly because the actual
description suggested the script becomes 'POSIX-compliant'.

The second reason for that notice is that someone might want to fix
that sometime. But I guess the best way would be through complete
change of the check logic.

--
Best regards,
MichaÅ GÃrny

<http://mgorny.alt.pl>
<xmpp:mgorny@xxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/