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

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

[Octave-bug-tracker] [bug #48351] make_absolute_filename should canonica


From: Rik
Subject: [Octave-bug-tracker] [bug #48351] make_absolute_filename should canonicalize absolute filename inputs
Date: Mon, 4 Jul 2016 14:55:48 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Update of bug #48351 (project octave):

                  Status:               Confirmed => Fixed                  
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #7:

@Mike: I like it.  I took the liberty of using your code and also modifying
run.m to put the input validation first.  In addition, we no longer need the
call to make_absolute_filename at all.  The 'cd' command can handle relative
paths just fine.  That also fixes the case you mentioned of 


run //tmp/foo.m


See http://hg.savannah.gnu.org/hgweb/octave/rev/98ee8b1ebbeb.

I also optimized do_make_absolute for the common occurrence (every single time
a prompt is generated) where it is called with '.' as an input.  See
http://hg.savannah.gnu.org/hgweb/octave/rev/8df31c24dce3.

Closing report.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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