www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/03/23/19:02:01

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <49C822E9.2050603@veritech.com>
Date: Mon, 23 Mar 2009 20:01:45 -0400
From: "Lee D. Rothstein" <l1ee057 AT veritech DOT com>
User-Agent: Thunderbird 2.0.0.21 (Windows/20090302)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com, cygwin AT cygwin DOT com
Subject: Re: 1.7.0: Getting a Windows app to run synchronously to a script from which it is invoked
References: <49C6D72D DOT 4090804 AT veritech DOT com> <20090323092845 DOT GJ9322 AT calimero DOT vinschen DOT de>
In-Reply-To: <20090323092845.GJ9322@calimero.vinschen.de>
X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.0.1
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

Corinna Vinschen wrote:
> On Mar 22 20:26, Lee D.Rothstein wrote:
>   
> <snip>
>   

> First of all, the explorer command does not stop input from the
> terminal.  When I invoke the above script, I get an explorer window
> *and* I can type into the calling shell again because explorer is
> running detached.  Experiments with notepad show that notepad is running
> synchronously, so in that case the shell is waiting for notepad to exit.
> I get this behaviour consistently on 1.5 and 1.7.
>   
This is my oversight. I used the wrong example, but even for the right 
example, I believe I
misdiagnosed the problem. The correct, verified diagnosis follows (I hope).

After some more research I find the actual problem with Cygwin 1.7, is that
if you try to open open a file with a Windows app through its softlink, 
(in the
directory of both the file and its softlink) the Windows app opens the
softlink, not the file to which it is linked. This only happens with 
Windows apps, and
the problem does not happen with Cygwin 1.5. (I just tested it on both 
versions.)

This is what confused me about all the other results I reported.

However, if I use '$(cygpath -wa SOFTLINK)', the windows app opens the 
correct file.
So, in summary, 'cygpath' works!, but Cygwin 1.7 appears to not 
dereference the link
for Windows apps as it did with Cygwin 1.5, unless 'cygpath' is used.

WRT, explorer ever running synchronously, I thought that at one point 
(perhaps pre 1.5,
and pre-XP) that you could get Explorer to run synchronously, but I may 
be mistaken.
That's (at the very least) the age of the mistakenly referenced script.
> Corinna
>
>
> P.S.: If that would be my script, I'd use cygpath -wa, to get always
> an absolute Windows path, btw.  This removes the trailing backslash
> you always get when calling `cygpath -w .'.
>
>   
Thanks for the advice and sorry to have bothered you with the prior 
misinformation.

BTB, aside from this obscure difference (that seems to have only impacted my
ancient and ill-conceived scripts), I am enjoying Cygwin 1.7. Thank you, 
very much.

Lee

--
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