Re: "here strings" and tmpfiles

2019-03-18 Thread Eduardo A . Bustamante López
On Mon, Mar 18, 2019 at 05:18:10PM -0400, Daniel Kahn Gillmor wrote: > hi bash developers-- (...) > a) use socketpair(2) or pipe(2) instead of making a tmpfile. this has > the potential downside that the semantics of access to the remaining > file descriptor would be subtly different from

"here strings" and tmpfiles

2019-03-18 Thread Daniel Kahn Gillmor
hi bash developers-- I ran the following command to get a sense of how bash deals with here strings under the hood: strace -o tmp/bash.herestring.strace -f bash -c 'cat <<<"hello there"' (i'm testing with bash 5.0-2 on debian testing/unstable). It turns out that this creates a temporary fil

Re: Problem in var substitution with / and \

2019-03-18 Thread Jean-François Berroyer
On 14/01/2019 15:00, Chet Ramey wrote: On 1/14/19 6:51 AM, Jean-François Berroyer wrote: Bash Version: 5.0 Patch Level: 0 Release Status: release Description: If a variable contains one '/' (or many) and if this '/' is escaped with '\' by substitution mechanism and if the escaped variable is c