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

 
 

bug #34950: ls *.m fails

Submitted by:  Ben Abbott <bpabbott>
Submitted on:  Wed 30 Nov 2011 01:39:21 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Ben AbbottOpen/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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>
Project Member
Tue 06 Dec 2011 04:19:33 AM UTC, comment #1:

Fixed in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/15400d5deb1c)

Rik <rik5>
Project 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>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 06 Dec 2011 04:19:33 AM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1