[Scilab-Dev] function "ls"

Allan CORNET allan.cornet at inria.fr
Fri Feb 8 10:26:25 CET 2008


Hi,

+1 to use listfiles in ls on linux & windows

Allan

Le 10:16 AM 2/8/2008,Sylvestre Ledru écrit:
>Hi,
>
>I am thinking about changing the behaviour of the function ls
>http://www.scilab.org/product/man/index.php?module=fileio&page=ls.htm
>
>I would like to remove the second input argument for a few reasons:
>* security issues. This simple example shows how weak it is :
>  ls("*.sci","`echo hacked >/tmp/hmhm`")
>
>* Compatiblity and portability. A user working under Linux and using
>tricks on this function won't have the same result under proprietary
>operating systems.
>
>* We are too closely related to the ls behaviour on the platform
>
>* The code could be directly pluged to the listfiles and therefore
>facilitate the maintenance (It is already the case under Windows).
>
>Any objections ?
>
>Sylvestre



==============================================
Allan CORNET
Scilab Consortium
http://www.scilab.org
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 at inria.fr
==============================================







-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/dev/attachments/20080208/675e0fd2/attachment.htm>


More information about the dev mailing list