[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Weird problem with function ls or system("ls...")
From: |
Francesco Potorti` |
Subject: |
Re: Weird problem with function ls or system("ls...") |
Date: |
Tue, 28 Jul 2009 23:18:13 +0200 |
>Look at the different behaviour:
>
>The directory is empty.
>But for ls * it gives me an empty set but return code 0 (all fine).
>For ls *a* it gives me an error (return code 2).
Yes, this is off-topic for the Octave list. However this is what I see,
and it looks consistent:
$ mkdir empty
$ cd empty
$ ls *
ls: cannot access *: No such file or directory
$ echo $?
2
$ ls *a*
ls: cannot access *a*: No such file or directory
$ echo $?
2
$ bash --version
GNU bash, version 3.2.48(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2007 Free Software Foundation, Inc.
$ ls --version
ls (GNU coreutils) 7.4
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Richard M. Stallman and David MacKenzie.
--
Francesco Potortì (ricercatore) Voice: +39 050 315 3058 (op.2111)
ISTI - Area della ricerca CNR Fax: +39 050 315 2040
via G. Moruzzi 1, I-56124 Pisa Email: address@hidden
(entrance 20, 1st floor, room C71) Web: http://fly.isti.cnr.it/
- Re: Weird problem with function ls or system("ls..."), (continued)
- Re: Weird problem with function ls or system("ls..."), Rob Mahurin, 2009/07/28
- Re: Weird problem with function ls or system("ls..."), Christian Weickhmann, 2009/07/28
- Re: Weird problem with function ls or system("ls..."), John W. Eaton, 2009/07/28
- Re: Weird problem with function ls or system("ls..."), David Grundberg, 2009/07/28
- Re: Weird problem with function ls or system("ls..."), Christian Weickhmann, 2009/07/28
- Re: Weird problem with function ls or system("ls..."), John W. Eaton, 2009/07/28
- Re: Weird problem with function ls or system("ls..."), Christian Weickhmann, 2009/07/28
- Re: Weird problem with function ls or system("ls..."), John W. Eaton, 2009/07/28
- Re: Weird problem with function ls or system("ls..."), Christian Weickhmann, 2009/07/28
- Re: Weird problem with function ls or system("ls..."), John W. Eaton, 2009/07/28
- Re: Weird problem with function ls or system("ls..."),
Francesco Potorti` <=