X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Date: Sun, 15 Mar 2009 00:25:59 +0700 From: bjoe To: cygwin AT cygwin DOT com Cc: cygwin-digest AT cygwin DOT com Subject: Mintty running program from shortcut problem Message-ID: <20090314172556.GA4004@komputer04> Mail-Followup-To: cygwin AT cygwin DOT com, cygwin-digest AT cygwin DOT com References: <1236781363 DOT 28956 DOT ezmlm AT cygwin DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1236781363.28956.ezmlm@cygwin.com> User-Agent: Mutt/1.4.2.2i Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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: bayu AT semampir ~ $ mkshortcut -D -i /usr/bin/mintty.exe -w /usr/bin -a "info" /usr/bin/mintty.exe 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 bayu AT semampir ~ $ mkshortcut -D -i /usr/bin/cygicons-0.dll -j8 -w /usr/bin -a "-p /usr/bin rxvt -e info" /usr/bin/run.exe To avoid this trouble use bash -lc so mintty will run bash in login shell first. bayu AT semampir ~ $ mkshortcut -D -i /usr/bin/mintty.exe -w /usr/bin -a "bash -lc /usr/bin/info" /usr/bin/mintty.exe 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/