Mercurial > octave-antonio
comparison scripts/miscellaneous/dir.m @ 17908:7df8f5372ea8
doc: Add note about wildcard expansion in ls and dir functions (bug #40544).
* dir.m, ls.m: Add note about wildcard expansion (bug #40544).
author | Rik <rik@octave.org> |
---|---|
date | Tue, 12 Nov 2013 16:43:42 -0800 |
parents | d63878346099 |
children | 931cc13a6f3b 446c46af4b42 |
comparison
equal
deleted
inserted
replaced
17907:6a381b9ae055 | 17908:7df8f5372ea8 |
---|---|
45 ## @item statinfo | 45 ## @item statinfo |
46 ## Information structure returned from @code{stat}. | 46 ## Information structure returned from @code{stat}. |
47 ## @end table | 47 ## @end table |
48 ## | 48 ## |
49 ## If @var{directory} is a filename, rather than a directory, then return | 49 ## If @var{directory} is a filename, rather than a directory, then return |
50 ## information about the named file. @var{directory} may be a list of | 50 ## information about the named file. @var{directory} may also be a list rather |
51 ## directories specified either by name or with wildcard characters (like * | 51 ## than a single directory or file. |
52 ## and ?) which will be expanded with @code{glob}. | 52 ## |
53 ## @var{directory} is subject to shell expansion if it contains any wildcard | |
54 ## characters @samp{*}, @samp{?}, @samp{[]}. If you want to find a | |
55 ## literal example of a wildcard character you must escape it using the | |
56 ## backslash operator @samp{\}. | |
53 ## | 57 ## |
54 ## Note that for symbolic links, @code{dir} returns information about | 58 ## Note that for symbolic links, @code{dir} returns information about |
55 ## the file that the symbolic link points to rather than the link itself. | 59 ## the file that the symbolic link points to rather than the link itself. |
56 ## However, if the link points to a nonexistent file, @code{dir} returns | 60 ## However, if the link points to a nonexistent file, @code{dir} returns |
57 ## information about the link. | 61 ## information about the link. |