[bug #68006] 'system' command unable to redirect stderr or stdout to "nul"

Philip Nienhuis <[email protected]>
Newsgroups gmane.comp.gnu.octave.bugs
Message-ID <[email protected]>
Please use the bug tracker to post updates to a bug report.  The mailing list is intended as a read-only notification stream.  Info posted to this mailing list address won't appear in the tracker database where it is most useful.

URL:
  <https://savannah.gnu.org/bugs/?68006>

                 Summary: 'system' command unable to redirect stderr or stdout
to "nul"
                   Group: GNU Octave
               Submitter: philipnienhuis
               Submitted: Tue 03 Feb 2026 10:14:24 PM CET
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: None
             Assigned to: None
         Originator Name: philipnienhuis
        Originator Email:
             Open/Closed: Open
         Discussion Lock: Unlocked
                 Release: 11.0.90
        Operating System: Microsoft Windows
           Fixed Release: None
         Planned Release: 11.1.0 (current stable)


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Tue 03 Feb 2026 10:14:24 PM CET By: Philip Nienhuis <philipnienhuis>
While testing a new io package release with dev Octave-12, I see messages
along these lines when using a Java based spreadsheet I/O interface:

java version "24" 2025-03-18
Java(TM) SE Runtime Environment (build 24+36-3646)
Java HotSpot(TM) 64-Bit Server VM (build 24+36-3646, mixed mode, sharing)

The source of one of those is a command like below which is in several
functions in the io package:

 :
  jtst = system ("java -version 2> nul");
 :

(note: with just one hyphen before 'version' java's output goes to stderr,
with two hyphens to stdout.  Redirecting stdout to 'nul' doesn't work either
anymore.)

In a crossbuild I made on Jan. 24, and with released Octave-10.3.0 d/led from
ftp.gnu.org I don't see this; but with a nightly from Feb 3 and an Octave-12
crossbuild I made today (Feb 3) this error shows up.  So I conclude some
recent change broke the ability to redirect stdout and sterr to (at least)
'nul' (= Window's bitbucket).

On Linux I don't see this with dev Octave.







    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?68006>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaYJlMwAKCRCqLAuaBUf3
Th0FAPoDd8Wo9JK06ms9BZmIvABKz7a0RuZ998SU3SSCuQ4nSwEAkOEs0KlPwhUN
1UrrML5zbUOjIfU1GkrfEaIOGRAmeww=
=FLAl
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.