delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/08/27/06:28:53

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:from:to:subject:date:reply-to:message-id
:references:in-reply-to:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=eXMNeDebHTsweLF9
1iumXS94fhrLbrhri9JDWTzJkf0ShXsF58C88+RFFmYVr9zC3WI8SySaUwWC+XBM
a4TVBUYdt3qfNmG5B/PniPztL8YKXUsi9iK2vlmBoBisVH3wD8nP9C8OfqWxbMXe
Mo4ycxxKpuLTXlDJzweNAm9n9Dw=
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:from:to:subject:date:reply-to:message-id
:references:in-reply-to:mime-version:content-type
:content-transfer-encoding; s=default; bh=MxUR7XNnDcEN2W7MdvfVxl
VXuCw=; b=ddijUFIjG8bAqCs9mQ7SXa6tHGYCNGE5vp/ubdTZ7KIyJ/p6nONW1F
wd9HczWIEFYGBvTPSb1WpbcDGoGmElaDgcN6D+KglrFs/ciVFJKLE92bGhMYQhqm
g1MC+xapAvKWUVE6R6XtSCIfoFSeXP+97QbC3H71Jyb9MmjIV33Wc=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=H*i:sk:1974732, H*MI:sk:1974732, H*f:sk:1974732
X-HELO: homiemail-a24.g.dreamhost.com
From: Bengt Larsson <lists DOT cygwin4 AT bengtl DOT net>
To: cygwin AT cygwin DOT com
Subject: Re: Proposal for new cygwin.bat which is independent from install directory
Date: Sat, 27 Aug 2016 12:28:22 +0200
Reply-To: cygwin AT cygwin DOT com
Message-ID: <daq2sb15dt33v54ekoc1p8f4snvepa0og0@4ax.com>
References: <57C06CFA DOT 4060405 AT t-online DOT de> <1974732522 DOT 20160826193931 AT yandex DOT ru>
In-Reply-To: <1974732522.20160826193931@yandex.ru>
User-Agent: ForteAgent/7.20.32.1218
MIME-Version: 1.0
X-IsSubscribed: yes

Andrey Repin wrote:
>Greetings, Christian Franke!
>
>> Traditionally setup.exe creates the /cygwin.bat file as follows if 
>> C:\cygwin is the install directory:
>> -----
>> @echo off
>
>> C:
>> chdir C:\cygwin\bin
>
>> bash --login -i
>> -----
>
>
>> The following should work since WinXP regardless of install directory:
>> -----
>> @echo off
>
>> cd /d %~dp0
>> if errorlevel 1 exit /b 1
>> cd bin
>> if errorlevel 1 exit /b 1
>
>> bash --login -i
>> -----
>
>Why so complicated?

Also don't see why so complicated. While staying in the console, how
about:
-----
@echo off

cd /d "%~dp0\bin"

bash --login -i
-----

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019