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

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

[Octave-bug-tracker] [bug #61338] mkdir silent on recreating existing di


From: anonymous
Subject: [Octave-bug-tracker] [bug #61338] mkdir silent on recreating existing directory
Date: Wed, 13 Oct 2021 09:42:17 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:93.0) Gecko/20100101 Firefox/93.0

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

                 Summary: mkdir silent on recreating existing directory
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Wed 13 Oct 2021 01:42:15 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Missed Error or Warning
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: dev
         Discussion Lock: Any
        Operating System: GNU/Linux

    _______________________________________________________

Details:

The command "mkdir foo" at the Octave command prompt misses an error if the
directory foo already exists. The function form of mkdir returns the error
correctly but the error is not printed in the command form. The return status
is also 1 even if the error message is set to "directory exists". This is on
Octave 7.


>> [a,b,c] = mkdir ("foo")
a = 1
b = 
c = 
>> [a,b,c] = mkdir ("foo")
a = 1
b = directory exists
c = mkdir
>> mkdir foo
>> mkdir foo
>> 






    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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