dash
Scott James Remnant
scott at ubuntu.com
Thu Sep 14 20:45:21 BST 2006
On Thu, 2006-09-14 at 14:06 -0500, Rocco Stanzione wrote:
> I kept quiet, though, figuring too many wheels had already started turning in
> that direction, until today when I tried to build iptables. When I
> ran "make", the first line of output was:
>
> [: 1: /usr/src/linux/include/asm: unexpected operator
>
> caused by the line:
>
> ifeq ($(shell [ -a $(KERNEL_DIR)/include/asm ] && echo YES), YES)
>
Err, this isn't valid POSIX shell...
> http://www.opengroup.org/onlinepubs/000095399/utilities/test.html
>
As cited by the URL you gave.
"test -a" is a very definite bashism for "if file exists". The correct
POSIX for that is -e.
Scott
--
Scott James Remnant
scott at ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/ubuntu-devel/attachments/20060914/f8b99081/attachment.pgp
More information about the ubuntu-devel
mailing list