delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/04/12/16:06:16

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <grrk70$g7e$1@ger.gmane.org>
References: <d1bf2a1c0904111903me0ced2ei2819143ee96e8e15 AT mail DOT gmail DOT com> <grrk70$g7e$1 AT ger DOT gmane DOT org>
Date: Sun, 12 Apr 2009 13:05:53 -0700
Message-ID: <d1bf2a1c0904121305p4fe08abgd0c6141ff5b1bf1b@mail.gmail.com>
Subject: Re: No Output When Running Program From Sub Directory
From: Fabricio Guzman <guzman DOT fabricio AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Rene, thanks for the reply!  The GNU libtool is a generic library
support script and I'm using CYGWIN_NT-5.1 1.5.25.  The 'which'
command you suggested has given me some great insight.  Here's what
I'm seeing...

In TopDir:
1)  which libtool  --> /usr/bin/libtool
2)  which ./libtool --> /usr/myhome/TopDir/libtool

In SubDir:
3)  which ../libtool  --> /usr/myhome/TopDir/libtool

The first 'which' works while the second and third 'which' do not.  It
appears the libtool that comes with cygwin in /usr/bin/ works as
expected, but the libtool that came with the source code in
/usr/myhome/TopDir/ does not.  I will try to compare the two files to
see what is different.

Thanks again for the help.


On Sat, Apr 11, 2009 at 7:38 PM, Ren=E9 Berber <r DOT berber AT computer DOT org> wrot=
e:
> Fabricio Guzman wrote:
>
>> This problem seems simple yet I've spent the last two days researching
>> and have been unsuccessful.
>>
>> I have a directory, "TopDir", with one subdirectory "SubDir". =A0The
>> "TopDir" has a program called "libtool." =A0If I'm in "TopDir" the
>> command "libtool --help" works as expected (I see the help text).
>> However, if I'm in "SubDir" and type the command "../libtool --help",
>> nothing shows up. =A0I don't see any text and the shell simply returns
>> to a prompt. =A0Am I not allowed to run programs residing in a different
>> directory?
>
> Directories have nothing to do with what you are seeing.
>
> ../libtool is equivalent only to ./libtool on the parent directory, what
> you did was execute the first libtool found on the PATH, to see which
> one is it try "which libtool".
>
> Of course if PATH contains . before any other directory then things
> would work as you expect, except that the libtool you are testing still
> doesn't output anything, is that libtool compiled to be a windows app?
> many windows console applications don't interact well with Cygwin,
> output is buffered and shows much later than expected, or doesn't show,
> windows pipes don't connect, etc. and things changed even more if you
> are using Cygwin 1.7 (works worse now).
> --
> R.Berber
>
>
> --
> Unsubscribe info: =A0 =A0 =A0http://cygwin.com/ml/#unsubscribe-simple
> Problem reports: =A0 =A0 =A0 http://cygwin.com/problems.html
> Documentation: =A0 =A0 =A0 =A0 http://cygwin.com/docs.html
> FAQ: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 http://cygwin.com/faq/
>
>

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019