From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "KARR, DAVID" Newsgroups: gmane.emacs.help Subject: Groovy script that reads stdin fails with "java.net.MalformedURLException: unknown protocol: c" when run with "shell-command-on-region" Date: Thu, 12 Feb 2015 20:54:11 +0000 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1423774504 3283 80.91.229.3 (12 Feb 2015 20:55:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Feb 2015 20:55:04 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 12 21:54:51 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 1YM0mg-0006ZV-CK for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Feb 2015 21:54:50 +0100 Original-Received: from localhost ([::1]:52069 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YM0mf-0005fr-Sx for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Feb 2015 15:54:49 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YM0mT-0005fB-2h for help-gnu-emacs@gnu.org; Thu, 12 Feb 2015 15:54:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YM0mO-0005ef-F1 for help-gnu-emacs@gnu.org; Thu, 12 Feb 2015 15:54:37 -0500 Original-Received: from nbfkord-smmo05.seg.att.com ([209.65.160.92]:15726) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YM0mO-0005eV-Al for help-gnu-emacs@gnu.org; Thu, 12 Feb 2015 15:54:32 -0500 Original-Received: from unknown [144.160.128.153] (EHLO flpi408.enaf.ffdc.sbc.com) by nbfkord-smmo05.seg.att.com(mxl_mta-7.2.4-2) over TLS secured channel with ESMTP id 6031dd45.0.3591873.00-2020.9929521.nbfkord-smmo05.seg.att.com (envelope-from ); Thu, 12 Feb 2015 20:54:31 +0000 (UTC) X-MXL-Hash: 54dd13073b5776ea-26ac17ad5b45694b115bcfc796019aa95437c2ca Original-Received: from enaf.ffdc.sbc.com (localhost.localdomain [127.0.0.1]) by flpi408.enaf.ffdc.sbc.com (8.14.5/8.14.5) with ESMTP id t1CKsUNs000411 for ; Thu, 12 Feb 2015 12:54:30 -0800 Original-Received: from flpi489.ffdc.sbc.com (flpi489.ffdc.sbc.com [130.4.162.183]) by flpi408.enaf.ffdc.sbc.com (8.14.5/8.14.5) with ESMTP id t1CKsPFl000369 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 12 Feb 2015 12:54:25 -0800 Original-Received: from CAFRFD1MSGHUBAD.ITServices.sbc.com (CAFRFD1MSGHUBAD.itservices.sbc.com [130.4.169.143]) by flpi489.ffdc.sbc.com (RSA Interceptor) for ; Thu, 12 Feb 2015 20:54:12 GMT Original-Received: from CAFRFD1MSGUSRIA.ITServices.sbc.com ([169.254.1.213]) by CAFRFD1MSGHUBAD.ITServices.sbc.com ([130.4.169.143]) with mapi id 14.03.0195.001; Thu, 12 Feb 2015 12:54:12 -0800 Thread-Topic: Groovy script that reads stdin fails with "java.net.MalformedURLException: unknown protocol: c" when run with "shell-command-on-region" Thread-Index: AdBG8vnRPzn5cK+gRpawZyPl+0QhbA== Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [141.204.54.71] X-RSA-Inspected: yes X-RSA-Classifications: public X-AnalysisOut: [v=2.0 cv=P56NcF8u c=1 sm=1 a=xwOvzTHDVLE4u4nGvK72ag==:17 a] X-AnalysisOut: [=k7E725FWHN0A:10 a=bUTmcr14hzQA:10 a=BLceEmwcHowA:10 a=kj9] X-AnalysisOut: [zAlcOel0A:10 a=COfzQ7OkAAAA:8 a=zQP7CpKOAAAA:8 a=XIqpo32RA] X-AnalysisOut: [AAA:8 a=0HtSIViG9nkA:10 a=ceS7BUQtRuWeAF3mUAUA:9 a=CjuIK1q] X-AnalysisOut: [_8ugA:10] X-Spam: [F=0.2000000000; CM=0.500; S=0.200(2014051901)] X-MAIL-FROM: X-SOURCE-IP: [144.160.128.153] X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.65.160.92 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:102686 Archived-At: I'm using Emacs 24.3.90.1 in Cygwin on Win7. I have a Groovy script that reads from stdin, and it works fine when I run = it from Bash, piping text into the process. I'm now trying to select text in an Emacs buffer, and then execute "shell-c= ommand-on-region" The text I'm selecting appears to be identical to what I= 'm sending on the command line. When I run this, it fails with "java.net.MalformedURLException: unknown pro= tocol: c". This obviously has something to do with my PATH, but I'm not sure what coul= d 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 t= he process sees, and it obviously has entries in "/c/..." (I set my cygdriv= e prefix to "c").