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

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

[Octave-bug-tracker] [bug #41978] hgload not finding correct *.ofig file


From: Muhali
Subject: [Octave-bug-tracker] [bug #41978] hgload not finding correct *.ofig file
Date: Thu, 27 Mar 2014 14:30:31 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0

URL:
  <http://savannah.gnu.org/bugs/?41978>

                 Summary: hgload not finding correct *.ofig file
                 Project: GNU Octave
            Submitted by: muhali
            Submitted on: Thu 27 Mar 2014 07:30:30 AM PDT
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

If there is a file 'foo.ofig' plus a file 'foo.m' in the current directory (or
anywhere in the load path), the command

hgload("foo")

does not work. In this part of the hgload function


  ## Check file existence
  if (! exist (filename))
    [~, ~, ext] = fileparts (filename);
    if (isempty (ext))
      filename = [filename ".ofig"];
    endif
    if (! exist (filename))
      error ("hgload: unable to locate file %s", filename);
    endif
  endif


the check is incomplete, as it finds foo.m.





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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