help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Octave-cvsupdate] octave-forge/main/miscellaneous/inst edit.m, 1.4,


From: Søren Hauberg
Subject: Re: [Octave-cvsupdate] octave-forge/main/miscellaneous/inst edit.m, 1.4, 1.5
Date: Wed, 04 Oct 2006 16:15:51 +0200
User-agent: Thunderbird 1.5.0.7 (X11/20060918)

Olli Saarela skrev:

edit('editor','"C:/Program Files/Good Editor/Editor.exe" "$(cygpath -wa $s)"')

Can somebody with a windows box confirm that the quotes are needed?

Yes, double quotes are needed. I'm currently running 2.1.50, and the command above starts the correct editor, but it doesn't find the file. There is an error message from cygpath, and it seems $s is not evaluated.

>> edit('editor','"C:/Program Files/Good Editor/Editor.exe" "$(cygpath -wa $s)"')
 >> edit foo.m
Usage: cygpath (-d|-m|-u|-w|-t TYPE) [-c HANDLE] [-f FILE] [options] NAME
cygpath [-ADHPSW]
So the $(...) notation doesn't work on Cygwin?

Søren

P.S. Sorry if I'm confused but I don't have access to Cygwin.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]