[Top][All Lists]

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

Re: Space in windows' user path

From: Nicholas Jankowski
Subject: Re: Space in windows' user path
Date: Sat, 16 Feb 2019 19:33:04 -0500

On Sat, Feb 16, 2019 at 5:52 AM ayapos <address@hidden> wrote:
> Hello all,
> I'm a new Octave user under Win64. The inline command "Help function" won"t
> work since my user name includes a space character. For instance, if I type
> "help freqz" I have the following answer in the command window :
> *could not open C:\Users\/first_part_of_username/: No such file or directory
> could not open
> /second_part_of_username/\AppData\Local\Temp\octave-help-CnIEcD: No such
> file or directory*
> Can anyone tell me a workaround for this issue?
> Thanks in advance,
> A. Herbert

(1) as another user mentioned, spaces cause odd results, as a space in Tatsuro's username seems to not cause the same issue.  I just noticed you're showing mixed forward and back slash characters, that could also account for part of the problem as windows does not always handle those consistently.

(2) if the problem is truly that there are spaces in the TMP and/or TEMP environment variables, a very quick & dirty workaround would be to create a batch file in the same folder as octave.vbs, I named mine 'pathfix.bat'.  file contents are:

set OCTAVE_HOME=%~dp0
cd %TMP%
set TMP=%~sf1
cd %TEMP%
set TEMP=%~sf1
start octave.vbs

this will step over to those folders and the ~s part will replace the long-name environment variables with 8.3 versions before starting octave.  E.g., mine was set as:

and after running the script above it became

you can try the same with other environment variables that you think might be involved if this doesn't work around the issue. I'll annotate this on the bug report as well, but it's not really a fix to the underlying problem. I'm also sure something else could just be added to the octave.vbs, maybe something from Ian's message, but that's not an area I'm used to playing in.

reply via email to

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