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

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

[Octave-bug-tracker] [bug #62282] ls command in 7.1.0 may not function


From: Liang Tang
Subject: [Octave-bug-tracker] [bug #62282] ls command in 7.1.0 may not function
Date: Thu, 21 Apr 2022 09:56:24 -0400 (EDT)

Follow-up Comment #25, bug #62282 (project octave):

Markus, pls see if this helps.  Thanks.  

There is a ls code behavior change between 6.3.0 and 7.1.0 for Window OS. The
following 7.1.0 results are generated with ls patch you sent.   

------------------------------------------------------------
For 6.3.0, I can see that the Unix directory separator / is rejected, which is
Ok from my view point.  

ls C:\Octave\Octave-7.1.0\mingw64\share\octave\packages\audio-2.0.4\          
Yes
ls C:\Octave\Octave-7.1.0\mingw64\share\octave\packages\audio-2.0.4\*         
Yes
ls C:\Octave\Octave-7.1.0\mingw64\share\octave\packages\audio-2.0.4\*.m       
Yes

The following ls with / at the end, gives mixed results.  I don't have any
issue with this.  / is not a valid folder separator for Window OS.
ls C:\Octave\Octave-7.1.0\mingw64\share\octave\packages\audio-2.0.4/          
Yes
ls C:\Octave\Octave-7.1.0\mingw64\share\octave\packages\audio-2.0.4/*         
No
ls C:\Octave\Octave-7.1.0\mingw64\share\octave\packages\audio-2.0.4/*.m       
No

-------------------------------------------------------------
For 7.1.0 with the ls patch, the window folder \ separator is rejected, which
I think is not a reasonable code behavior. 
 
ls C:\Octave\Octave-7.1.0\mingw64\share\octave\packages\audio-2.0.4\         
Yes
ls C:\Octave\Octave-7.1.0\mingw64\share\octave\packages\audio-2.0.4\*        
No
ls C:\Octave\Octave-7.1.0\mingw64\share\octave\packages\audio-2.0.4\*.m      
No 

ls C:\Octave\Octave-7.1.0\mingw64\share\octave\packages\audio-2.0.4/          
Yes
ls C:\Octave\Octave-7.1.0\mingw64\share\octave\packages\audio-2.0.4/*         
Yes
ls C:\Octave\Octave-7.1.0\mingw64\share\octave\packages\audio-2.0.4/*.m       
Yes 


I am bit confused by the following two.  I expected the outcome of the two be
the same, rejection or acceptance uniformly.  But they are not.  

This does not work. My understanding from Markus's note, is that audio-2.0.4*
file does not exit.  But the folder does exist. I expected to see the list of
the files in the folder. 
ls C:\Octave\Octave-7.1.0\mingw64\share\octave\packages\audio-2.0.4\*

This works.  It shows the folder contents. 
cd C:\Octave\Octave-7.1.0\mingw64\share\octave\packages\
ls audio-2.0.4*


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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