This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Mintty running program from shortcut problem
- From: bjoe <bayuadi dot w at gmail dot com>
- To: cygwin at cygwin dot com
- Cc: cygwin-digest at cygwin dot com
- Date: Sun, 15 Mar 2009 00:25:59 +0700
- Subject: Mintty running program from shortcut problem
- References: <1236781363.28956.ezmlm@cygwin.com>
Dear,
When we running program with mintty from shortcut, mintty will
running the program in non login shell without knowing cygwin PATH.
This will make some kind of error When program try to running
external program like info run gzip or using shell escape in vim.
Is this expected behavior?
Making mintty shortcut running info with this code:
<code>
bayu@semampir ~
$ mkshortcut -D -i /usr/bin/mintty.exe -w /usr/bin -a "info"
/usr/bin/mintty.exe
<code>
When I try to enter the node info produce error like this:
gunzip < /usr/share/info/as.info.gz.../bin/sh: gunzip: command not
found Cannot find node `Top'.
note: Making shortcut manually also produce same problem
This error not found when using rxvt
<code>
bayu@semampir ~
$ mkshortcut -D -i /usr/bin/cygicons-0.dll -j8 -w /usr/bin -a "-p
/usr/bin rxvt -e info" /usr/bin/run.exe
<code>
To avoid this trouble use bash -lc <command> so mintty will run bash
in login shell first.
<code>
bayu@semampir ~
$ mkshortcut -D -i /usr/bin/mintty.exe -w /usr/bin -a "bash -lc
/usr/bin/info" /usr/bin/mintty.exe
<code>
Regards
--
It is easy to say no when
there is a deeper yes burning within
--
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/