Issue 1636: Error if a file name is duplicated

Reported by Michael Baudin, Mar 18, 2016

Consider the test :

cwd = get_absolute_file_path("update_help.sce");
modulename = "mymodule";
helpdir = cwd;
funmat = [
macrosdir = 
demosdir = [];
helptbx_helpupdate ( funmat , helpdir , macrosdir , demosdir , 
modulename , %t );

The function is duplicated, which creates the error :

Processing C:\[...]\function1.sci
 !--error 999 
mgetl: Wrong size for input argument #1: String or logical unit 
at line      58 of function helptbx_iscontentupdte called by :  
at line      52 of function helptbx_updtifneeded called by :  
at line     156 of function helptbx_helpupdate called by :  
helptbx_helpupdate ( funmat , helpdir , macrosdir , demosdir , 
modulename , %t );
at line      23 of exec file called by :    
exec C:\[...]\update_help.sce;

The fact that the list contains a duplicate element should generate 
an error.

Comment 1 by Michael Baudin, Mar 18, 2016

Here is the fix, in helptbx_helpupdate :

        issci = regexp(f,"/(.*).sci$/");
        kf = find(funarray==basename(f))
        if (size(kf,"*")>1) then
            error(msprintf("%s: File ""%s"" 
has been found several times in input argument %s at input 
#%d", ..
            "helptbx_helpupdate", funarray(kf(1)), 
"funarray", 1));

Comment 2 by adv ydv, Mar 18, 2019

If you are sad and you want to share your feeling via WhatsApp then 
click  here sad Whatsapp status this is 
the best website for  free Whatsapp download

Comment 3 by adv ydv, Mar 28, 2019

Hi, guys, you are looking for Whatsapp status download video song 
then click here you can download best 
video song for WhatsApp

Comment 5 by Robin jack, Sep 17, 2019

free sugar dating app

Comment 6 by smith seo, Oct 6, 2019

An fascinating discussion may be valued at comment. I do believe 
that you simply write read more about this topic, it might not often 
be a taboo subject but normally persons are too few to dicuss on 
such topics. To a higher. Cheers
bed bug extermination

Comment 7 by jalssae jalssae, Oct 18, 2019

We all are using the site for wonderful topics on absolute file path 
and making the useful programs. Mostly sharing here about 
essay techniques and generating the perfect programs for all the 

Comment 8 by Robin jack, Oct 23, 2019


Comment 9 by Robin jack, Oct 24, 2019

Very much, this process review is often the nicest at this 
outstanding field. Document harmonise to your findings but will 
thirstily expect to be your entire inward realises. Announcing 
appreciation will not only often be plenty of, towards the unique 
transparency affecting your crafting. I intercasino

Comment 10 by smith seo, Oct 26, 2019

2014 is shaping up to be a banner year for baby boomer business 
owners who want to sell their businesses and retire. What are some 
of the factors that are coming together to make 2014 the "year 
of the seller?" If you are a baby boomer business owner who is 
thinking about exiting your business learn why you might want to do 
so this year.	<a href="">casumo</a>

Comment 11 by smith seo, Oct 27, 2019

Cheapest player speeches and toasts, or maybe toasts. continue to be 
brought about real estate . during evening reception tend to be 
likely to just be comic, witty and therefore instructive as well. 
best man speeches free	<a href="">casinoextra</a>

Comment 13 by smith seo, Oct 31, 2019

firt aid kits… thank you for the informative information you have 
casino euro bonus

Created: 3 years 7 months ago by Michael Baudin

Updated: 14 days 17 hours ago

Status: New

Followed by: 5 persons