From: Jilles Tjoelker <jilles@stack.nl>
To: Alkis Georgopoulos <alkisg@gmail.com>
Cc: dash@vger.kernel.org
Subject: Re: No wildcard expansion with redirected filenames
Date: Sun, 8 Aug 2010 14:15:55 +0200 [thread overview]
Message-ID: <20100808121555.GA83441@stack.nl> (raw)
In-Reply-To: <1281209661.6631.33.camel@alkis>
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
prev parent reply other threads:[~2010-08-08 12:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-07 19:34 No wildcard expansion with redirected filenames Alkis Georgopoulos
2010-08-08 12:15 ` Jilles Tjoelker [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100808121555.GA83441@stack.nl \
--to=jilles@stack.nl \
--cc=alkisg@gmail.com \
--cc=dash@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.