delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/09/10/14:43:38

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
From: Phillip Lord <phillip DOT lord AT newcastle DOT ac DOT uk>
To: cygwin AT cygwin DOT com
Subject: Feature Request: bzr package only works within cygwin
Date: Wed, 10 Sep 2008 16:27:30 +0200
Message-ID: <EMEW-k89Jgn795d22dc28956a72c67a6471c00d80f2-81zlmg9iul.fsf@newcastle.ac.uk>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (windows-nt)
MIME-Version: 1.0
X-smtpf-Report: client=lan,relay,white,ipv6; mail=; rcpt=white
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


The cygwin package of bzr works only within cygwin bash. This is not
true to cvs or svn which work outside; for example, within a dos shell,
"bzr" gives "No such program" errors.

Likewise, cygwin bzr doesn't work properly with Emacs vc-bzr.el --
again, with no such program errors. 

The reason for this is that bzr is a python script and uses the magic !
line to find it's interpreter. Neither DOS nor Emacs vc-bzr.el interpret
this correctly. The alternative which is a windows native bzr works
fine, but doesn't do symlinks properly. 

One solution to this would be to put a bzr.bat command into
c:/cygwin/bin which launches python explicitly. I've tried this with the
script below and it seems to work fine. It doesn't interfere with cygwin
because the bzr script (in the same directory) gets called in preference
when bash is running. 

Would it be possible to get this added to the cygwin package? 

Thanks

Phil



@echo off

REM Launch cygwin bzr by launching python explicitly for those circumstances
REM when the magic shebang line doesn't work.

c:/cygwin/bin/python /usr/bin/bzr %1 %2 %3 %4 %5 %6 %7 %8 %9


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

- Raw text -


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