On Sat, Aug 07, 2010 at 10:34:21PM +0300, Alkis Georgopoulos wrote:
> Isn't this supposed to work?
> $ touch file1
> $ echo 1 > file?
> $ ls file?
> file? file1
> I.e. dash actually created a file named 'file?' instead of globbing.
No, this is not supposed to work. POSIX says that a non-interactive
shell must not generate pathnames for a redirection; an interactive
shell may do so, provided there is exactly one match.
Dash is primarily meant as a non-interactive shell and wants to be as
small as possible, and therefore never generates pathnames for a
redirection.
--
Jilles Tjoelker
--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[LARTC]
[Bugtraq]
[Yosemite Forum]
[Photo]