Mintty running program from shortcut problem

bjoe bayuadi.w@gmail.com
Sat Mar 14 17:26:00 GMT 2009


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/



More information about the Cygwin mailing list