Proposal for new cygwin.bat which is independent from install directory

Corinna Vinschen corinna-cygwin@cygwin.com
Tue Aug 30 15:43:00 GMT 2016


On Aug 26 18:23, Christian Franke wrote:
> 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
> -----
> 
> I would suggest to add something like the above as
> "/etc/defaults/cygwin.bat" to base-files package. The postinstall script
> should copy it to "/cygwin.bat" if new. The creation of this file could
> later be removed from setup.exe.

Apart from the complexity discussion, which is largly irrelevant, I like
the idea of moving this functionality out of setup and into a postinstall
script.

Please send patches.  I'm sure Achim will thoughtfully consider them.


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20160830/b8f75b7c/attachment.sig>


More information about the Cygwin mailing list