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

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

[Octave-bug-tracker] [bug #48247] addpath('dir1', 'dir2', 'dir3') revers


From: Lachlan Andrew
Subject: [Octave-bug-tracker] [bug #48247] addpath('dir1', 'dir2', 'dir3') reverses input directory order
Date: Fri, 17 Jun 2016 01:42:42 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Update of bug #48247 (project octave):

                  Status:               Confirmed => Patch Submitted        
         Originator Name:                         => Garrett Euler          

    _______________________________________________________

Follow-up Comment #3:

I can confirm Matlab's behaviour.

It is quite easy just to change the order of looping over the arguments (see
the attached patch), which seems to work.

I'm not sure if the code is sufficiently quirky to make it hard to maintain. 
The alternative would be to replace "i++" by "i += increment" and have a less
simple ending criterion than "i < end".

(file #37508)
    _______________________________________________________

Additional Item Attachment:

File name: bug_48247_addpath_order.cset   Size:1 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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