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

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

[Octave-bug-tracker] [bug #46293] Glob does not do all the list of file


From: Doug Stewart
Subject: [Octave-bug-tracker] [bug #46293] Glob does not do all the list of file names.
Date: Sun, 25 Oct 2015 17:27:35 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?46293>

                 Summary: Glob does not do all the list of file names.
                 Project: GNU Octave
            Submitted by: dastew
            Submitted on: Sun 25 Oct 2015 17:27:34 GMT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: None
             Assigned to: None
         Originator Name: Doug Stewart
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Glob only returns the longest filename.

In the following example all the file names that I am using are actual files
in that folder.





a={ "lsss.txt", ...
"Makefile", ...
"/home/doug/Desktop/src/mpfr_commons.cc",...
"/home/doug/Desktop/src/mpfr_function_d.cc",...
"/home/doug/Desktop/src/mpfr_function_d.oct",...
"/home/doug/Desktop/src/mpfr_linspace_d.oct",...
}

b=glob(a)

c={ "lsss.txt", ...
"Makefile", ...
"/home/doug/Desktop/src/mpfr_commons.cc",...
"/home/doug/Desktop/src/mpfr_function_d.cc",...
"/home/doug/Desktop/src/mpfr_function_d.oct",...
"/home/doug/Desktop/src/mpfr_linspace_d.oct",...
"/home/doug/Desktop/src/mpfr_matrix_mul_d.oct*"...
}

d=glob(c)


ee={ "lsss.txt", ...
"Makefile", ...
"/home/doug/Desktop/src/mpfr_commons.cc",...
"/home/doug/Desktop/src/mpfr_function_d.cc",...
"/home/doug/Desktop/src/mpfr_function_d.oct",...
"/home/doug/Desktop/src/mpfr_linspace_d.oct",...
"/home/doug/Desktop/src/mpfr_matrix_mul_d.*"...
}

f=glob(ee)



and now for the results:


a =
{
  [1,1] = lsss.txt
  [1,2] = Makefile
  [1,3] = /home/doug/Desktop/src/mpfr_commons.cc
  [1,4] = /home/doug/Desktop/src/mpfr_function_d.cc
  [1,5] = /home/doug/Desktop/src/mpfr_function_d.oct
  [1,6] = /home/doug/Desktop/src/mpfr_linspace_d.oct
}
b =
{
  [1,1] = /home/doug/Desktop/src/mpfr_function_d.oct
  [2,1] = /home/doug/Desktop/src/mpfr_linspace_d.oct
}
c =
{
  [1,1] = lsss.txt
  [1,2] = Makefile
  [1,3] = /home/doug/Desktop/src/mpfr_commons.cc
  [1,4] = /home/doug/Desktop/src/mpfr_function_d.cc
  [1,5] = /home/doug/Desktop/src/mpfr_function_d.oct
  [1,6] = /home/doug/Desktop/src/mpfr_linspace_d.oct
  [1,7] = /home/doug/Desktop/src/mpfr_matrix_mul_d.oct*
}
d =
{
  [1,1] = /home/doug/Desktop/src/mpfr_matrix_mul_d.oct
}
ee =
{
  [1,1] = lsss.txt
  [1,2] = Makefile
  [1,3] = /home/doug/Desktop/src/mpfr_commons.cc
  [1,4] = /home/doug/Desktop/src/mpfr_function_d.cc
  [1,5] = /home/doug/Desktop/src/mpfr_function_d.oct
  [1,6] = /home/doug/Desktop/src/mpfr_linspace_d.oct
  [1,7] = /home/doug/Desktop/src/mpfr_matrix_mul_d.*
}
f =
{
  [1,1] = /home/doug/Desktop/src/mpfr_function_d.oct
  [2,1] = /home/doug/Desktop/src/mpfr_linspace_d.oct
  [3,1] = /home/doug/Desktop/src/mpfr_matrix_mul_d.cc
  [4,1] = /home/doug/Desktop/src/mpfr_matrix_mul_d.o
  [5,1] = /home/doug/Desktop/src/mpfr_matrix_mul_d.oct
}
>>


you can see that b is the longest 2 file names of a
and d is the longest file name of c
and f is the result of the wildcard "*" plus the 2 next shorter file names.

I hope this will help the c++ debugers find the problem.
  




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46293>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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