From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Robert Thorpe Newsgroups: gmane.emacs.help Subject: Re: Groovy script that reads stdin fails with "java.net.MalformedURLException: unknown protocol: c" when run with "shell-command-on-region" Date: Fri, 13 Feb 2015 03:02:57 +0000 Message-ID: <87lhk2fr8e.fsf@robertthorpeconsulting.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1423796610 21780 80.91.229.3 (13 Feb 2015 03:03:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Feb 2015 03:03:30 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "KARR\, DAVID" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 13 04:03:20 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YM6XG-0004gz-9d for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Feb 2015 04:03:18 +0100 Original-Received: from localhost ([::1]:53065 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YM6XF-0000L1-KP for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Feb 2015 22:03:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56454) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YM6X4-0000Kp-3K for help-gnu-emacs@gnu.org; Thu, 12 Feb 2015 22:03:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YM6Wz-0008Nw-B7 for help-gnu-emacs@gnu.org; Thu, 12 Feb 2015 22:03:06 -0500 Original-Received: from outbound-smtp01.blacknight.com ([81.17.249.7]:46115) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YM6Wz-0008Nq-5E for help-gnu-emacs@gnu.org; Thu, 12 Feb 2015 22:03:01 -0500 Original-Received: from mail.blacknight.com (pemlinmail05.blacknight.ie [81.17.254.26]) by outbound-smtp01.blacknight.com (Postfix) with ESMTPS id 124579863F for ; Fri, 13 Feb 2015 03:02:59 +0000 (UTC) Original-Received: (qmail 14484 invoked from network); 13 Feb 2015 03:02:59 -0000 Original-Received: from unknown (HELO RTLaptop) (rt@robertthorpeconsulting.com@[109.79.140.129]) by 81.17.254.9 with ESMTPSA (DHE-RSA-AES128-SHA encrypted, authenticated); 13 Feb 2015 03:02:58 -0000 In-Reply-To: (dk068x@att.com) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 81.17.249.7 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102693 Archived-At: "KARR, DAVID" writes: ... > When I run this, it fails with "java.net.MalformedURLException: unknown protocol: c". > > This obviously has something to do with my PATH, but I'm not sure what could be wrong. This might be more of a Cygwin question than an Emacs question. I tried going into my "*scratch*" buffer and printed out the PATH that the process sees, and it obviously has entries in "/c/..." (I set my cygdrive prefix to "c"). Probably you are mixing Cygwin software with native Windows software. The two are making different assumptions about path conventions and that's causing problems. BR, Robert Thorpe