This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: run a tcsh script file with arguments from windows
- From: Brian Dessent <brian at dessent dot net>
- To: cygwin at cygwin dot com
- Date: Wed, 20 Jun 2007 10:04:24 -0700
- Subject: Re: run a tcsh script file with arguments from windows
- References: <f58ups$hu7$1@sea.gmane.org>
- Reply-to: cygwin at cygwin dot com
Tony B wrote:
> If I execute
> tcsh -c scriptfile inputfile
> tcsh uses inputfile as an argument to itself, not as an argument to the
> script.
> So if I run this command, I get a useage error from the script as it expects
> a filename ?
When using -c with any of the POSIX shells, the (singular) argument
following -c is the command to be executed, so if this command consists
of more than one word you have to quote it so that it's parsed as a
single argument.
Brian
--
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/