bugGNU Octave - Bugs: bug #34950, ls *.m fails

 
 

bug #34950: ls *.m fails

Submitter:  Ben Abbott <bpabbott>
Submitted:  Wed 30 Nov 2011 01:39:21 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Ben Abbott Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 07 Dec 2011 06:16:12 PM UTC, comment #3: 

Thanks for noticing that.  It was a problem with passing a cellstr to regexprep versus a comma-separated list.  Try updating to this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/caa7439203f2)

Rik <rik5>
Group administrator
Wed 07 Dec 2011 07:09:13 AM UTC, comment #2: 

This likely works for Windows, but it does not
for Linux.

ls -l *.log             (this works for matlab)
fails at line 58:
with: regexprep: unrecognizeed option

replacing line 58 of ls.m with:
   args = args{:};

produces Matlab-compatible results for
this simple case, but is probably not the
whole solution.

Michael

Michael Godfrey <godfrey>
Group Member
Tue 06 Dec 2011 04:19:33 AM UTC, comment #1: 
Rik <rik5>
Group administrator
Wed 30 Nov 2011 01:39:21 PM UTC, original submission:  

| Anyone seeing this?
|
| dir *.m
| go_crop.m    go_simple.m  go_test.m
| ls *.m
| ls: *.m: No such file or directory
| error: ls: command exited abnormally with status 1

This is my fault, for introducing some quoting to try to allow things
like

 ls foo(1)bar

to work.  I'm not sure what the best fix is, but it can't be as simple
as what I did.

jwe

Ben Abbott <bpabbott>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by godfrey (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by bpabbott (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-12-06 rik5 StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code