delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/04/19/16:59:00

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.9 required=5.0 tests=AWL,BAYES_05,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <BANLkTimf=TW2b=XJf2AUAWZ-_BLOJi+r+w@mail.gmail.com>
References: <BANLkTimf=TW2b=XJf2AUAWZ-_BLOJi+r+w AT mail DOT gmail DOT com>
From: "Wm. David Bentlage" <slomium+cygwin AT gmail DOT com>
Date: Tue, 19 Apr 2011 15:58:18 -0500
Message-ID: <BANLkTim-rmQ1=Sot6LkRHJd4Pbo08OEyxw@mail.gmail.com>
Subject: cygstart, mailto: URLs, and launching an executable
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

Hi,

What's the reason for the following change in cygstart between cygwin
1.5 and 1.7?=C2=A0 Can the cygwin 1.5 behavior be restored?


ai016aadm01 AT app-stl-33 ~
$ uname -a
CYGWIN_NT-5.2 app-stl-33 1.5.24(0.156/4/2) 2007-01-31 10:57 i686 Cygwin

ai016aadm01 AT app-stl-33 ~
$ cygstart -v mailto:
ShellExecute(NULL, "(null)", "mailto:", "(null)", "(null)", 1)

ai016aadm01 AT app-stl-33 ~
$ cygstart -v bash
ShellExecute(NULL, "(null)", "bash", "(null)", "(null)", 1)



ai016aadm01 AT app-stl-33 ~
$ uname -a
CYGWIN_NT-5.2 app-stl-33 1.7.9(0.237/5/3) 2011-03-29 10:10 i686 Cygwin

ai016aadm01 AT app-stl-33 ~
$ cygstart -v mailto:
ShellExecute(NULL, "(null)", "W:\home\m278638\mailto=EF=80=BA", "(null)", "=
(null)", 1)
Unable to start 'W:\home\m278638\mailto=EF=80=BA': The specified file was n=
ot found.

ai016aadm01 AT app-stl-33 ~
$ cygstart -v bash
ShellExecute(NULL, "(null)", "W:\home\m278638\bash", "(null)", "(null)", 1)
Unable to start 'W:\home\m278638\bash': The specified file was not found.


Under cygwin 1.5, I could open a new email in the default application
using "cygstart mailto:".=C2=A0 Under cygwin 1.7, I get an error.
Performing "cygstart mailto://" will get cygwin 1.7 cygstart to
recognize mailto: as a URL instead of a file, but that's not proper
mailto: URL syntax.

Under cygwin 1.5, a new bash window is launched (per the man page).
Under cygwin 1.7, I get an error.=C2=A0 I can open bash in cygwin 1.7 if I
specify the full path to the bash executable.

Thanks,
Dave B.

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

- Raw text -


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