unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Eli Zaretskii" <eliz@elta.co.il>
Subject: Re: specifying Windows filenames
Date: Mon, 23 Jun 2003 19:18:36 +0300	[thread overview]
Message-ID: <2110-Mon23Jun2003191835+0300-eliz@elta.co.il> (raw)
In-Reply-To: <87el1kyh73.fsf@openbsd.agero.se> (message from Gustaf Erikson on Mon, 23 Jun 2003 16:57:52 +0200)

> Newsgroups: gnu.emacs.help
> From: Gustaf Erikson <gustafe+usenet@openbsd.agero.se>
> Date: Mon, 23 Jun 2003 16:57:52 +0200
> 
> I'm using NTEmacs 20.7 on WindowsXP. I'm trying to call a perl script
> in the "H:\bin\" directory with shell-command-on-region. Perl is from
> the Cygwin distribution.
> 
> I've tried specifying the command  in different ways: 
> 
> "H:/bin/command.pl" throws up the script in Notepad(!) So does
> "H:\\bin\\command.pl".

I think this fails because Windows doesn't know about the "#!" magic
on the first line of command.pl.  (On Posix systems, the OS kernel
notices that magic string and handles the rest of the first line by
invoking the named interpreter on the script.)

I'd try this:

    M-x shell-command-on-region RET perl H:/bin/command.pl RET

Did that work?

  reply	other threads:[~2003-06-23 16:18 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-23 14:57 specifying Windows filenames Gustaf Erikson
2003-06-23 16:18 ` Eli Zaretskii [this message]
     [not found] ` <mailman.8475.1056385357.21513.help-gnu-emacs@gnu.org>
2003-06-23 19:50   ` Jason Rumney
2003-06-24  7:07   ` Harald Joerg
2003-06-24  7:11     ` Jason Rumney
2003-06-24  7:47       ` Harald Joerg
2003-06-24 14:52         ` Eli Zaretskii
2003-06-24 16:24         ` Jason Rumney
2003-06-25  7:55           ` Harald Joerg
2003-06-24  8:03 ` [solved] " Gustaf Erikson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2110-Mon23Jun2003191835+0300-eliz@elta.co.il \
    --to=eliz@elta.co.il \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).