On Wed, 25 Jun 2008, Vladimir Marek wrote:

> > I've messed this up.  I *do* get the test statement to fail, but
> > it carries on anyway, because of the leading - sign.  I've done this:
> 
> Ah, I never said that the test fails, but looking at my previous message
> I have to admit that it sounds so.

No, you didn't say that, but when I looked back through the output I
couldn't find the failure among the skipped errors.

> 
> [...]
> 
> > I can't find a GNU autoconf macro to test for test, preferring a GNU
> > version.  That would usually work.  I found this:
> 
> I do not think it's necessary. '-e' tests if file exits, but this option

You're right: that's a shell function. Sorry.

> is not supported by solaris /bin/sh (but it is supported by ksh and
> bash). I suggested using '-x' instead, which tests if file exists and is
> executable, and which is supported even by /bin/sh.
> 
> > $ /bin/sh -c '[ -e /bin/ls ] && echo exists'
> > /bin/sh: test: argument expected
> 
> > $ /bin/bash -c '[ -e /bin/ls ] && echo exists'
> > exists
> 
> > $ /bin/ksh -c '[ -e /bin/ls ] && echo exists'
> > exists
> 
> > OK, all the same as yours.  What's happening here?
> 
> From the solaris man page
> =============================== test(1) ================================
> ...
>      -e file                     True if file exists. (Not avail-
>                                  able in sh.)
> ...
> ========================================================================

Sorry, I understand now what is happening, but wrote that bit before
I realised that I'd failed to see the problem in my output. [Then I 
had to go for lunch or they'd run out again, so left too hastily. I
wanted to let you know I'd replicated your problem anyway.]
> 
> I just suggest changing '-x' for '-e'. But the tests are running fine
> even without this change.

I'm testing if the problem disappears if the whole operation is run 
under /bin/ksh in the first place...

No. Starting from ./configure under /bin/ksh doesn't fix this.
That's not my login shell though.  Indeed, $SHELL is still set
to /bin/tcsh.  So I `export SHELL=/bin/ksh` and rebuild && test.
No, the src/Makefile doesn't get rewritten, so the bug is still there.
I think your fix is the only course of action, with the experience
I have.

By the way, which version of Solaris are you on? Just wondering how
long this will persist.  
> 
> Sorry for the confusion.

All the confusion was my fault, not seeing it, and failing to edit
out  "What's happening here?"
> 
> -- 
>       Vlad
> 
        Thank you,
        Hugh

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui