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: Olli Saarela
Subject: Re: [Octave-cvsupdate] octave-forge/main/miscellaneous/inst edit.m, 1.4, 1.5
Date: Wed, 04 Oct 2006 16:34:38 +0300
User-agent: Thunderbird 1.5.0.7 (Windows/20060909)


  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]

Printing out the argument to system in edit.m gives
ans = "C:/Program Files/Good Editor/Editor.exe" "$(cygpath -wa $s)"


Best regards, and thank you for the good work
  Olli

PS. Some alternatives for quotation, both of the following work in Octave 2.1.50

>> ls '"d:/my files"'   % single quotes around double quotes
>> ls ''d:/my\ files/'' % two single quotes at each end


--
Olli Saarela
Oy Keskuslaboratorio - Centrallaboratorium Ab
Tekniikantie 2, Espoo-Otaniemi
P.O. Box 70, FIN-02151 Espoo, Finland


reply via email to

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