octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #49765] Windows CLI version octave tries to wr


From: kire pudsje
Subject: [Octave-bug-tracker] [bug #49765] Windows CLI version octave tries to write history to C:\
Date: Sun, 4 Dec 2016 23:27:03 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0

Follow-up Comment #4, bug #49765 (project octave):

And to avoid problems with people using spaces in filenames, obtain the short
dos form of the directory.
Long filenames (>8 characters) without spaces will be kept normal, as to avoid
ugly filenames.


if "%UserProfile: =_space_%" == "%UserProfile%" (
  set HOME=%UserProfile%
) else (
  for %%I in ("%UserProfile%") do set HOME=%%~sI
)


The same trick might be used with OCTAVE_HOME

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49765>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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