octave-maintainers
[Top][All Lists]
Advanced

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

Windows: different behaviour of octave.bat and octave-cli/gui.exe regard


From: Abhinav Tripathi
Subject: Windows: different behaviour of octave.bat and octave-cli/gui.exe regarding modifying path
Date: Tue, 9 Aug 2016 01:22:12 +0530

Hi,
I saw that if I run octave from '<octave-dir>/bin/octave-cli.exe' or '<octave-dir>/bin/octave-cli.exe' then I only get PATH as "<windows-path>;<octave-dirs>;" which doesn't let me install any packages. I get errors such as 'sort' is not gnu sort or sometimes 'expr.exe' starts crashing (that too repeatedly 10-20 times)...

If I edit PATH (using setenv) such that PATH becomes "<octave-dir>;<windows-path>;" (simply swapping the 2 parts) then I can install packages (using "pkg install").

Also, instead, if I run octave from '<octave-dir>/octave.bat' then it automatically prepends octave's bin dir to PATH and the installation of packages goes smoothly.

Mike said "those executables should not change PATH, what you are seeing is the expected behavior. Setting environment variables like PATH is precisely the point of the bat file."

I have just one question, why aren't the other executables supposed to modify the PATH when it helps resolve this issue?

.
Abhinav

reply via email to

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