[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49825] 64-bit Octave on Windows: system comma
From: |
kire pudsje |
Subject: |
[Octave-bug-tracker] [bug #49825] 64-bit Octave on Windows: system command always fails |
Date: |
Tue, 13 Dec 2016 20:44:03 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0 |
Follow-up Comment #5, bug #49825 (project octave):
I have always developed in a unix environment. Unfortunately I now have to use
Windows, but luckily octave is packaged with most of the unix environment, to
be usable.
Because of this background, I assumed the system command starts a (unix)
shell, as per unix man page: "system() executes a command specified in command
by calling /bin/sh -c command"
However on windows it looks like a cmd.exe shell is started.
Personally I think a warning about this difference would be appropriate in the
help of the command. At least state that the given example only works on
linux.
Wrapping a the system command in a sh -c "" results in 'proper' behavior.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49825>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/