Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14217
| Path | csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail |
|---|---|
| From | Ilkka Virta <itvirta@iki.fi> |
| Newsgroups | gnu.bash.bug |
| Subject | Re: cat<(echo text) not same as cat <(echo text) |
| Date | Mon, 4 Jun 2018 12:07:37 +0300 |
| Lines | 28 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.1097.1528103273.1292.bug-bash@gnu.org> (permalink) |
| References | <CA+1SQ8fPSrcktEP=h1L+fo9vMcsG2YfZ06nhMd0kJzFqwOGDJg@mail.gmail.com> |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | usenet.stanford.edu 1528103273 10475 208.118.235.17 (4 Jun 2018 09:07:53 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| To | Edward Huff <ejhuff@gmail.com>, bug-bash@gnu.org |
| Envelope-to | bug-bash@gnu.org |
| User-Agent | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 |
| In-Reply-To | <CA+1SQ8fPSrcktEP=h1L+fo9vMcsG2YfZ06nhMd0kJzFqwOGDJg@mail.gmail.com> |
| Content-Language | en-US |
| X-SASI-RCODE | 200 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; h=subject:to:references:from:message-id:date:mime-version:in-reply-to:content-type:content-transfer-encoding; s=smtp; bh=2RRqm06JoNkFw8pOEfNv5eA+5wx5d79FMerI5s+oAYY=; b=IULOkIK7ulbRS7vz2k1jiovUzf/rsx6PYK6TQFVKGo8YwzSXesJlTOQfkjbLGykChxXSVOGmWr46CHwJ5hhcQOJfzgsYsiuObAADbpV2/l2pXdVsocQW5Pz2UrwhLz5nlGP28f4v7ZbaHkf/QPCMbPQoID+VnA2jUFaeqLzaAwSJa3s3MhU5wH9Q+9kUEj3UKKT4mrJ5zTf1o5i5ylCDZDk+Qp19rKb15iGH9vrw22MjqnifaiSRjPirTUA5ij45Y0Pv1DkmSZaJNQsXidQT+I6/3qacyI8s77LF1l4Bm6BIoqdp285OyXG4E6uq7L13WsMzZv8/2NinE/C4Aeez5w== |
| X-detected-operating-system | by eggs.gnu.org: FreeBSD 8.x [fuzzy] |
| X-Received-From | 157.24.2.213 |
| X-BeenThere | bug-bash@gnu.org |
| X-Mailman-Version | 2.1.21 |
| Precedence | list |
| List-Id | Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org> |
| List-Unsubscribe | <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe> |
| List-Archive | <http://lists.gnu.org/archive/html/bug-bash/> |
| List-Post | <mailto:bug-bash@gnu.org> |
| List-Help | <mailto:bug-bash-request@gnu.org?subject=help> |
| List-Subscribe | <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe> |
| Xref | csiph.com gnu.bash.bug:14217 |
Show key headers only | View raw
On 4.6. 06:48, Edward Huff wrote:
> That is unexpected.
>
> bash --version
> GNU bash, version 4.4.19(1)-release (x86_64-redhat-linux-gnu)
I assume you'd like Bash to behave like ksh here, and to expand the
process expansion filename as a distinct word instead of concatenating
it with the surrounding strings?
$ bash -c 'cat<(echo foo)bar'
bash: cat/dev/fd/63bar: No such file or directory
$ ksh -c 'cat<(echo foo)bar'
foo
cat: bar: No such file or directory
In this case, it would make sense to separate the words and make it just
work like a redirection. But in some cases you might want the filename
prefixed with a string, e.g.:
somecmd --file=<(echo something)
Ksh's behavior makes that impossible.
--
Ilkka Virta / itvirta@iki.fi
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: cat<(echo text) not same as cat <(echo text) Ilkka Virta <itvirta@iki.fi> - 2018-06-04 12:07 +0300
csiph-web