delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/04/20/11:21:57

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:message-id:content-type
:content-transfer-encoding:mime-version; q=dns; s=default; b=ozJ
fRoEgMwSOqLpSopSQ9SydqV20kWUqyNOBsPM5yhMCIP721HvwIOdiixiVnruTZR6
W/IjAU1vztYVLXCdRhXEFcXr/FvgK8Zgy6hgX2/y0Hb0Fvjaw9SVQyINcUDBVeNs
IEpzI/avLK2AkRVMIq2VQB7uoEKMdyINfWAIo7to=
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:message-id:content-type
:content-transfer-encoding:mime-version; s=default; bh=hu+pXN1YV
gqwwzzAy3YnKNmadkE=; b=iH8Zh6ck7t1lerekCSuUzU39mi2l7wkPfDWERXVah
aIr3JTqPn/YraJkCk2moolJzTw1/ZD6WzTvjSY9NyXOcoat0P+G1z6s6IvM7IVug
O0krXzERK0/uCUDoXgS4rKtzcBPv453h1QC32yB84ZgEF73B9EQymOVsm8tUCrz0
Ss=
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=4.6 required=5.0 tests=AWL,BAYES_50,KAM_INFOUSMEBIZ,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS,TBC autolearn=no version=3.3.2 spammy=arizona, Arizona, Quick, hosting
X-HELO: na01-bn1-obe.outbound.protection.outlook.com
From: Brian Clifton <brian AT clifton DOT me>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: introduction, fix for npm w.r.t. git, and questions
Date: Wed, 20 Apr 2016 15:21:27 +0000
Message-ID: <BLUPR03MB230DECD3A735AF3CB2225CBDF6D0@BLUPR03MB230.namprd03.prod.outlook.com>
authentication-results: cygwin.com; dkim=none (message not signed) header.d=none;cygwin.com; dmarc=none action=none header.from=clifton.me;
x-ms-office365-filtering-correlation-id: 3c1e9b17-1c05-4993-ad27-08d3692f71ae
x-microsoft-exchange-diagnostics: 1;BLUPR03MB231;5:W/GK5wqBF0GaqhQ7Lu5wAXdLo9jNGzGcR5Dn0xEoCi+4KPV+1VQzpSN2oTX1377DjqLd3hLCu/8K5VDk6C3IZyi/sv+2d02V/xvZkWbZ4y9bk51Cvj7keBiTRifSVYSlUbSJm0o6NSnKiHPARyFumQVJzjA9KdHAseaQFML3TtLmvMfBmyXP6jvcakXQ7oCz;24:UVevCqu93Ta1jd+Cf14yv3xu8fNL0h00R9f2rJmg85c+bmkDqU2hKyarGEUIg6gXXVhC9S4lslLiAK8XRCGm3e4DYqBy+1B7zsuJq3WtsO0=;7:sbeVr9FiOvO9GStyeNSUjkPbyqFslZjuhNkOvMxDVPXauSRkG9dOuEobYzSNt+njl8LH4f2f+2Kbezsr5VrYw7V0Gbwa2WCu8ovnBm4nDJl1nRKeluzshx++26egIrH9AmrShpTPTnEu9MLEiUjw0DbwO6rsemDqBcApzT5CH7eEgw+qXDOEtA1BH7LBHsEBrmsvSztD+RuAG/ZGK8+ZiyD476Qf5GER2rhpYPYATD4=
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB231;
x-microsoft-antispam-prvs: <BLUPR03MB23140DA47DA9F5DA053EC05DF6D0 AT BLUPR03MB231 DOT namprd03 DOT prod DOT outlook DOT com>
x-exchange-antispam-report-test: UriScan:(220618547472400);
x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(9101521026)(6040130)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6041046)(6043046);SRVR:BLUPR03MB231;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB231;
x-forefront-prvs: 0918748D70
x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(5002640100001)(122556002)(5008740100001)(9686002)(11100500001)(74482002)(87936001)(107886002)(110136002)(450100001)(92566002)(189998001)(10400500002)(2351001)(5003600100002)(229853001)(2900100001)(74316001)(15975445007)(5004730100002)(66066001)(86362001)(19580395003)(50986999)(1096002)(3846002)(2906002)(54356999)(99286002)(1220700001)(3660700001)(6116002)(102836003)(3280700002)(33656002)(555904002)(586003)(2501003)(76576001)(5640700001)(81166005);DIR:OUT;SFP:1102;SCL:1;SRVR:BLUPR03MB231;H:BLUPR03MB230.namprd03.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en;
spamdiagnosticoutput: 1:23
spamdiagnosticmetadata: NSPM
MIME-Version: 1.0
X-OriginatorOrg: clifton.me
X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Apr 2016 15:21:27.9776 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 8bdfec6b-c71e-4ab9-8b6b-9de7cf58a5f5
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB231
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u3KFLrWD025659

Hi folks,

(I've never joined a mailing list so please bear with me as I learn how this works)

########
Quick intro
########
My name is Brian, I'm a developer at a hosting company in Arizona, USA and I really enjoy Cygwin. I mostly use it at home and I appreciate all of the work everyone has done. It has made my life easier for sure.

########
Git using Windows paths
########
I saw the email chain regarding Git using Windows paths; I wanted to share that I've been fighting that too. Specifically, npm will fail npm installs because it will try to use the Windows path. I submitted the following PR to fix that:
https://github.com/npm/npm/pull/12366

The PR was denied but you can see the patch made and manually apply this yourself.  Since it was rejected, I'm trying to find a better way to do this. I am considering a solution by creating a git() function in my bashrc like so:
function git {
    for var in "$@"
    do
        if [[ $var == *":\\"* ]]; then
            $var="$(cygpath $var)" #this doesn't work, but the idea is to do something like this
        fi
    done
    command git "$@"
}

I wanted to ask what you all think about this approach. Since Cygwin converts the paths, filtering any git input through cygpath makes sense, IMO. With how many folks experience issues w/ git on Cygwin, I'd like to help popularize *some* kind of fix, whatever it might be, since NPM and likely other projects are not willing to support Cygwin.

########
Quick question(s)
########
Is the website source available in git? If so, would folks be open to PRs with styling changes and/or documentation updates?

Thanks
Brian

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