Mercurial > octave-antonio
diff 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 |
line wrap: on
line diff
--- a/scripts/miscellaneous/dir.m Tue Nov 12 15:11:17 2013 -0800 +++ b/scripts/miscellaneous/dir.m Tue Nov 12 16:43:42 2013 -0800 @@ -47,9 +47,13 @@ ## @end table ## ## If @var{directory} is a filename, rather than a directory, then return -## information about the named file. @var{directory} may be a list of -## directories specified either by name or with wildcard characters (like * -## and ?) which will be expanded with @code{glob}. +## information about the named file. @var{directory} may also be a list rather +## than a single directory or file. +## +## @var{directory} is subject to shell expansion if it contains any wildcard +## characters @samp{*}, @samp{?}, @samp{[]}. If you want to find a +## literal example of a wildcard character you must escape it using the +## backslash operator @samp{\}. ## ## Note that for symbolic links, @code{dir} returns information about ## the file that the symbolic link points to rather than the link itself.