in reply to etags not working within function called by find

The only difference between the two is the current work directory at the time you call system. Does it work if you use no_chdir?
find({ wanted => \&tagEmacsFiles, no_chdir => 1, }, "C:/Program Files/Emacs"); sub tagEmacsFiles { system("etags -a \"$File::Find::name\"") if /\.el$/i && -f $File::Find::name; }

Replies are listed 'Best First'.
Re^2: etags not working within function called by find
by Dirk80 (Pilgrim) on May 03, 2010 at 08:50 UTC

    Thank you. With the option no_chdir it is working.