bugGNU Octave - Bugs: bug #25714, Error in PS() function (3.1.53...

 
 

bug #25714: Error in PS() function (3.1.53 version)

Submitted by:  None
Submitted on:  Thu 26 Feb 2009 01:08:38 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedAssigned to: None
Originator Name: José Luis García PalleroOriginator Email: -unavailable-
Open/Closed: ClosedRelease: dev
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 27 Feb 2009 10:26:22 AM UTC, comment #5:

Ok, now runs fine

José Luis García Pallero <jgpallero>
Thu 26 Feb 2009 07:26:20 PM UTC, comment #4:

I checked in the following change. Does it fix the problem for you?

http://hg.savannah.gnu.org/hgweb/octave/rev/8ed42c679af5

John W. Eaton <jwe>
Project Administrator
Thu 26 Feb 2009 02:41:09 PM UTC, comment #3:

My .octaverc looks like:

myPrompt = "\\u@\\H> ";
if exist('OCTAVE_VERSION')==5
PS1(myPrompt);
else
PS1 = myPrompt;
end

The if statement is for distinguish between new and old versions of octave. I don't remember where I saw this test, I suppose that was in an old post of help mailing list. When I start octave with this .octaverc file, the next error message appears:

error: A(I): Index exceeds matrix dimension.

and, as jwe said exist one variable wich name is PS1 and contains an empty matrix ([](0x0)). I suppose that this variable is created when .octaverc is executed, but I don't know if the syntax are wrong

(file #17541)

José Luis García Pallero <jgpallero>
Thu 26 Feb 2009 02:22:01 PM UTC, comment #2:

Did you somehow define a variable called PS1?

John W. Eaton <jwe>
Project Administrator
Thu 26 Feb 2009 01:30:07 PM UTC, comment #1:

works for me in today's tip...

Jaroslav Hajek <highegg>
Thu 26 Feb 2009 01:08:38 PM UTC, original submission:

When I type: PS1 ("\\u@\\H> "), the next error appears:

A(I): Index exceeds matrix dimension.

But in 3.1.52 runs ok. Is a konown bug?

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #17541:  octaverc added by jgpallero (101B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jgpallero (Updated the item)
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by highegg (Posted a comment)
  • -unavailable- added by None (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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 16 Mar 2009 06:29:55 AM UTChigheggOpen/ClosedOpen=>Closed
    Thu 26 Feb 2009 07:26:19 PM UTCjweStatusWorks For Me=>Fixed
    Thu 26 Feb 2009 02:41:09 PM UTCjgpalleroAttached File-=>Added octaverc, #17541
    Thu 26 Feb 2009 01:30:06 PM UTChigheggStatusNone=>Works For Me

    Back to the top


    Powered by Savane 3.1-cleanup1