<html>
<body>
Hi, <br><br>
+1 to use listfiles in ls on linux & windows<br><br>
Allan<br><br>
Le 10:16 AM 2/8/2008,Sylvestre Ledru écrit:<br>
<blockquote type=cite class=cite cite="">Hi,<br><br>
I am thinking about changing the behaviour of the function ls<br>
<a href="http://www.scilab.org/product/man/index.php?module=fileio&page=ls.htm" eudora="autourl">
http://www.scilab.org/product/man/index.php?module=fileio&page=ls.htm</a>
<br><br>
I would like to remove the second input argument for a few reasons:<br>
* security issues. This simple example shows how weak it is :<br>
 ls("*.sci","`echo hacked
>/tmp/hmhm`")<br><br>
* Compatiblity and portability. A user working under Linux and using<br>
tricks on this function won't have the same result under proprietary<br>
operating systems.<br><br>
* We are too closely related to the ls behaviour on the platform<br><br>
* The code could be directly pluged to the listfiles and therefore<br>
facilitate the maintenance (It is already the case under
Windows).<br><br>
Any objections ?<br><br>
Sylvestre</blockquote>
<x-sigsep><p></x-sigsep>
<br><br>
<pre>==============================================
Allan CORNET
Scilab Consortium
<a href="http://www.scilab.org/" eudora="autourl">http://www.scilab.org
</a>INRIA - Unité de Recherche de Rocquencourt
Domaine de Voluceau - B.P. 105
78153 Le Chesnay Cedex

==============================================
Projet Scilab
Bâtiment 1B - Bureau 009
Email : allan.cornet@inria.fr
==============================================






</body>
</html>