|
From: | Chet Ramey |
Subject: | Re: sh expansion <here* |
Date: | Tue, 05 Oct 2004 21:46:10 -0400 |
User-agent: | Mozilla Thunderbird 0.8 (Macintosh/20040913) |
Dan Jacobson wrote:
You may be concerned about the following disturbing behaviour, $ cat kkj wc<kk? $ sh kkj kkj: line 1: kk?: No such file or directory $ bash kkj 1 1 7 $ sh sh-3.00$ wc<kk? 1 1 7 or it may all just be in my head as usual.
POSIX says that a non-interactive shell may not perform pathname expansion on the word following the redirection operator. Bash doesn't do so when running in posix mode. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ( ``Discere est Dolere'' -- chet ) Live...Laugh...LoveChet Ramey, ITS, CWRU chet@po.CWRU.Edu http://cnswww.cns.cwru.edu/~chet/
[Prev in Thread] | Current Thread | [Next in Thread] |