[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #65808] "octave.bat" does not work in case the
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #65808] "octave.bat" does not work in case the PATH variable contains directories with spaces |
Date: |
Wed, 29 May 2024 15:14:34 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?65808>
Summary: "octave.bat" does not work in case the PATH variable
contains directories with spaces
Group: GNU Octave
Submitter: None
Submitted: Wed 29 May 2024 07:14:33 PM UTC
Category: Octave Package
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Unexpected Error or Warning
Status: None
Assigned to: None
Originator Name: Michael Bachmann
Originator Email: mr.bachmann@web.de
Open/Closed: Open
Release: 9.1.0
Discussion Lock: Any
Operating System: Microsoft Windows
Fixed Release: None
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Wed 29 May 2024 07:14:33 PM UTC By: Anonymous
In case e.g. the PATH variable contains directories with spaces e.g.:
C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
the following error occurs:
>set "PATH=C:\Program Files\GNU Octave\Octave-9.1.0\mingw64\bin;%PATH%"
>octave.bat --version
\NVIDIA was unexpected this time.
The solution for the issue is to put the argument of every call of "set" in
double quotes like e.g.:
set "PATH=%OCT_HOME%\bin;%PATH%"
This allows to handle variable values which contain spaces correctly.
Please find attached a patched version of octave.bat in which the double
quotes have been added.
Using the patched version of octave.bat:
>octave.bat --version
GNU Octave, version 9.1.0
Copyright (C) 1993-2024 The Octave Project Developers.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.
Octave was configured for "x86_64-w64-mingw32".
Home page: https://octave.org
Support resources: https://octave.org/support
Improve Octave: https://octave.org/get-involved
_______________________________________________________
File Attachments:
-------------------------------------------------------
Name: octave-9.1.0.zip Size: 3KiB
<https://file.savannah.gnu.org/file/octave-9.1.0.zip?file_id=56111>
-------------------------------------------------------
Name: octave-9.1.0_bat.patch Size: 5KiB
<https://file.savannah.gnu.org/file/octave-9.1.0_bat.patch?file_id=56112>
AGPL NOTICE
These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://git.savannah.nongnu.org/cgit/administration/savane.git/snapshot/savane-4b48cbb9570c156bf7d681225b664258d7028914.tar.gz
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65808>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #65808] "octave.bat" does not work in case the PATH variable contains directories with spaces,
anonymous <=
- [Octave-bug-tracker] [bug #65808] "octave.bat" does not work in case the PATH variable contains directories with spaces, Markus Mützel, 2024/05/30
- [Octave-bug-tracker] [bug #65808] "octave.bat" does not work in case the PATH variable contains directories with spaces, anonymous, 2024/05/30
- [Octave-bug-tracker] [bug #65808] "octave.bat" does not work in case the PATH variable contains directories with spaces, Markus Mützel, 2024/05/31
- [Octave-bug-tracker] [bug #65808] "octave.bat" does not work in case the PATH variable contains directories with spaces, Markus Mützel, 2024/05/31
- [Octave-bug-tracker] [bug #65808] "octave.bat" does not work in case the PATH variable contains directories with spaces, anonymous, 2024/05/31
- [Octave-bug-tracker] [bug #65808] "octave.bat" does not work in case the PATH variable contains directories with spaces, anonymous, 2024/05/31