Background processes prevent terminal window from closing
Charles Wilson
cygwin@cwilson.fastmail.fm
Thu May 5 13:23:00 GMT 2011
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
More information about the Cygwin
mailing list