X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=XbfZMIe7aNMCR8RL/LBtAeoVgMqZDOnA5SVVFIfOHg2 0Lf/M5lhQgnygB65AlzQL/Qw+pim/gY5NgrsbHeD55SnuwTrwcRPn/Lx3zHNk1ZD NnGCblQfCE8FbBK6HnIWBr5pk74YDfbnWZDUEo/Fcj1aSgRLq81T+zqJF9eOK/I8 = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=GDQcCESf1BxUwAkKMsTZ3iDNX14=; b=LAHbifqZ90dSootId X66ZYC2OPgMWqprRQ4yLnrCCS089gWQOkBYKzwpZ8QSi4LWsYOnRdmvXA//tpbeA 0YRzxoeA8uC+4Iv7OO0dw4zHkYf/0KHZt1pkow1nm/+gAkyGwlAYK8EhSYa1tMFV Kdd+dpRINSEknQDK8zPxpzLVNo= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_40,FS_WITH_SMALL,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_PASS autolearn=no version=3.3.2 X-HELO: proxyz12.mailnet.ptd.net Message-ID: <5312AF5F.6000803@ptd.net> Date: Sat, 01 Mar 2014 23:11:11 -0500 From: Mike Rushton User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Help with shortcuts References: <239236467 DOT 6505411 DOT 1393596596199 DOT JavaMail DOT root AT ptd DOT net> <5312023A DOT 5040107 AT gmail DOT com> In-Reply-To: <5312023A.5040107@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Well thanks I will have to try that. My only other option was to create a menu and execute in from my profile ... and instead of shortcuts ... they would be options off a menu. I also found out you can create symbolic links under Win 7, WIn XP (you must download this Junction Program) and also do this under various Unix/Linux versions. On 3/1/2014 10:52 AM, Max Polk wrote: > On 2/28/2014 9:09 AM, mrushton wrote: >> Can some on give me a help with creating a shortcut to a shell script >> under Windows 7 ? >> >> >> I am doing something like this in the windows shorcut : >> >> C:\CygwinSoftware\bin\mintty.exe -i /Cygwin-Terminal.ico --exec >> /cygdrive/x/INBOUND/CWSCRIPTS/mymenu.sh >> >> Well I found in the documentation that when you run a script this >> way, it is not an interactive shell and it does not process your >> .bashprofile and .bashrc and all the good stuff it normally does when >> it logs in. I am missing aliases when it logs in this way. >> >> How can I create a shortcut that would process my normal startup >> files and then run the script I what ? > > From cmd.exe you can exec bash with the login and interactive flags, > and pass it a command like this to see all your vars: > > C:\Apps\Cyg\bin\mintty.exe --exec /bin/bash --login -i -c "set && read x" > > In Windows create a shortcut and simply paste the above in. > > -- > 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 > > -- 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