help-octave
[Top][All Lists]
Advanced

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

Line endings


From: William Miner
Subject: Line endings
Date: Thu, 14 May 2009 13:23:37 -0400
User-agent: Microsoft-Entourage/12.17.0.090302

All,

Part of the solution, as several people have suggested is to add the full path to the octave executable. Having said that, It still doesn’t work.

I'm using BBedit which allow me to change the line endings.

For Unix which is a line feed I get
dsl017-068-210:Octave williamminer$ ./hello
./hello: line 3: syntax error near unexpected token `"Hello, world!\n"'
./hello: line 3: `printf("Hello, world!\n");'

For Mac which is a carriage return I get
dsl017-068-210:Octave williamminer$ ./hello
#: bad interpreter: No such file or directoryents/Resources/bin/octave

And finally for windows which is carriage return line feed I get
dsl017-068-210:Octave williamminer$ ./hello
-bash: ./hello: /Applications/Octave.app/Contents/Resources/bin/octave^M: bad interpreter: No such file or directory
dsl017-068-210:Octave williamminer$

Bizarre!

Thanks to all who responded.
--
Enig Associates, Inc.
Suite 500, Bethesda Crescent Bldg.
4600 East West Hwy
Bethesda, Maryland 20814
Tel:(301)680-8600
Fax:(301)680-8100


reply via email to

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