[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mac: Script won't work when executed from bash shell?
From: |
Vic Norton |
Subject: |
Re: Mac: Script won't work when executed from bash shell? |
Date: |
Sat, 1 Feb 2014 20:13:42 -0500 |
Thanks, c. That was the problem. I really don't understand these unix flags.
Once I dropped the "-qf" in the shebang line, everything worked perfectly.
Regards,
Vic
On Feb 1, 2014, at 3:55 PM, c. <address@hidden> wrote:
>
> On 1 Feb 2014, at 18:41, Vic Norton <address@hidden> wrote:
>
>> ~/Norton/Programming/octave/m/tests/test2.m
>> contains just three lines:
>> #!/opt/local/bin/octave -qf
>
>> 3) Why the error? The minnormy0.m function has the path
>> ~/Norton/Projects/MinNormY/Octave/m/minnormy0.m
>> and
>> ~/.octaverc contains
>> addpath (genpath ("~/Norton/Projects/MinNormY/Octave/m"));
>
> the '-f' option you are passing when starting Octave means [1]:
>
> --norc
> -f
> Don’t read any of the system or user initialization files at startup. This is
> equivalent to using both of the options --no-init-file and --no-site-file.
>
> so whatever you write in .octaverc will not matter when you run the script.
>
> HTH,
> c.
>
> [1]
> http://www.gnu.org/software/octave/doc/interpreter/Command-Line-Options.html#Command-Line-Options#index-_002d_002dnorc