Christopher Cobb wrote:
> Conclusion: cmd.exe command line processing is brain dead.
>
> Among the problems are that cmd.exe looks for /exactly/ one pair of quotes and
> no more (see my previous message). And that (double) quotes are the /only/ way
> of quoting spaces.
Wow. Hideous.
I wonder
Christopher Cobb email.com> writes:
>
> Brian Dessent dessent.net> writes:
> >
> > Interesting function. However, I found that it chokes if the name of
> > the command to run has spaces, even if they are properly quoted on the
> > command line, e.g.
> >
>
> That's interesting. I'm running W
Brian Dessent dessent.net> writes:
>
> Interesting function. However, I found that it chokes if the name of
> the command to run has spaces, even if they are properly quoted on the
> command line, e.g.
>
That's interesting. I'm running Win XP and even with your patches I /still/ get
an error w
Christopher Cobb wrote:
> I use the following shell function cmd() to invoke batch files. It removes
> cygwinisms from the PATH and the environment first and does some argument
> pre-processing. It also seems to fix the space problem.
Interesting function. However, I found that it chokes if th
Igor Pechtchanski wrote:
On Fri, 3 Sep 2004, Mark Bohlman wrote:
Igor Pechtchanski wrote:
On Fri, 3 Sep 2004, Mark Bohlman wrote:
Igor Pechtchanski wrote:
On Fri, 3 Sep 2004, Christopher Cobb wrote:
I get different results than you do. It seems to work as expected:
[EMAIL PROTECTED] /c/Documen
On Fri, 3 Sep 2004, Mark Bohlman wrote:
> Igor Pechtchanski wrote:
> > On Fri, 3 Sep 2004, Mark Bohlman wrote:
> >
> > > Igor Pechtchanski wrote:
> > >
> > > > On Fri, 3 Sep 2004, Christopher Cobb wrote:
> > > >
> > > > > I get different results than you do. It seems to work as expected:
> > > >
Igor Pechtchanski wrote:
On Fri, 3 Sep 2004, Mark Bohlman wrote:
Igor Pechtchanski wrote:
On Fri, 3 Sep 2004, Christopher Cobb wrote:
I get different results than you do. It seems to work as expected:
[EMAIL PROTECTED] /c/Documents and Settings 09:45:46
511$ cat test.bat
echo %1
[EMAIL PROTECTED
On Fri, 3 Sep 2004, Mark Bohlman wrote:
> Igor Pechtchanski wrote:
> > On Fri, 3 Sep 2004, Christopher Cobb wrote:
> >
> > > I get different results than you do. It seems to work as expected:
> > >
> > > [EMAIL PROTECTED] /c/Documents and Settings 09:45:46
> > > 511$ cat test.bat
> > > echo %1
>
Igor Pechtchanski cs.nyu.edu> writes:
> I believe you're missing the point. Try
>
> ./test.bat "hello world"
>
> and you'll get the error.
I use the following shell function cmd() to invoke batch files. It removes
cygwinisms from the PATH and the environment first and does some argument
pre-p
Igor Pechtchanski wrote:
On Fri, 3 Sep 2004, Christopher Cobb wrote:
I get different results than you do. It seems to work as expected:
[EMAIL PROTECTED] /c/Documents and Settings 09:45:46
511$ cat test.bat
echo %1
[EMAIL PROTECTED] /c/Documents and Settings 09:45:48
511$ ./test.bat
C:\Documents
On Fri, 3 Sep 2004, Christopher Cobb wrote:
> I get different results than you do. It seems to work as expected:
>
> [EMAIL PROTECTED] /c/Documents and Settings 09:45:46
> 511$ cat test.bat
> echo %1
>
> [EMAIL PROTECTED] /c/Documents and Settings 09:45:48
> 511$ ./test.bat
>
> C:\Documents and S
I get different results than you do. It seems to work as expected:
[EMAIL PROTECTED] /c/Documents and Settings 09:45:46
511$ cat test.bat
echo %1
[EMAIL PROTECTED] /c/Documents and Settings 09:45:48
511$ ./test.bat
C:\Documents and Settings>echo
ECHO is on.
--
Unsubscribe info: http:
At 02:23 PM 9/2/2004, you wrote:
>Now let's take this one step further. In the last case, it actually
>thinks it wants
>to execute C:\Space instead of the script. Now let's do the following:
>Create a batch script called "C:\Space.bat" and put one line into it.
>cat /etc/passwd.
>
>Now re-ru
I typed too soon...
/c/Documents and Settings>./test.bat "Hello world"
'c:\Documents' is not recognized as an internal or external command,
operable program or batch file.
CyberZombie wrote:
I don't get that behavior...
~>cd /c/Documents\ and\ Settings
/c/Documents and Settings>cat test.bat
@echo %
I don't get that behavior...
~>cd /c/Documents\ and\ Settings
/c/Documents and Settings>cat test.bat
@echo %1
/c/Documents and Settings>./test.bat Hello world
Hello
/c/Documents and Settings>ls -l test.bat
-rwxr-xr-x1 Rob None8 Sep 2 13:53 test.bat
/c/Documents and Settings>
S
The problem is, there's nothing for me to quote here. It's not like
the batch script fails to
give me the correct information (due to incorrect quoting). The
script fails to even
LAUNCH when it lives in a directory with spaces and you pass in an argument with
a space in it. Mind you, I've change
Thank you for your most eloquent and considerably rude response.
Though maybe that's my fault for not mentioning in my initial email that
writing a shell script (which is something that I can do) is not an option.
Unfortunately there are reasons why we need these .bat scripts (yes I don't
like tha
17 matches
Mail list logo