| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,RCVD_IN_DNSWL_LOW |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <4DC2A4A1.9080905@cwilson.fastmail.fm> |
| Date: | Thu, 05 May 2011 09:22:41 -0400 |
| From: | Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm> |
| Reply-To: | Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm> |
| User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 |
| MIME-Version: | 1.0 |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: Background processes prevent terminal window from closing |
| References: | <BANLkTin2LqmSCJ8CdjSCNLTiPO8_sOknpg AT mail DOT gmail DOT com> <0105D5C1E0353146B1B222348B0411A209E8030C92 AT NIHMLBX02 DOT nih DOT gov> |
| In-Reply-To: | <0105D5C1E0353146B1B222348B0411A209E8030C92@NIHMLBX02.nih.gov> |
| 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 |
On 5/5/2011 7:38 AM, Buchbinder, Barry (NIH/NIAID) [E] wrote:
> But if you do not want to be limited file in the current working
> directory, use a function.
>
> notepad ()
> {
> cygstart "$(cygpath -u -W)/notepad.exe" "$(cygpath -w "$1")"
> }
>
> You might have to change -W to -S in the first cygpath, if notepad.exe
> is in $SYSDIR but not WINDIR. (In my instance of XP, it is in both.)
the latest (1.4.6) version of cygstart should allow the following to work:
notepad ()
{
cygstart notepad.exe "$(cygpath -w "$1")"
}
--
Chuck
--
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |