On Thu, Jan 28, 2016 at 12:40:57PM -0500, Mathieu Patenaude wrote:
> Yes, using ":" also illustrate the same (or similar) behavior that I'm
> experiencing with my script.  Using the "here" string creates the
> additional weirdness of showing that the temporary file content is actually
> "deleted", but the bash process keep the FD open.  Which is quite strange
> since it appears to have done half the job...

That's perfectly normal.  The here-document or here-string payload is
written to a temporary file, which is kept open, but unlinked.  That
way, when bash closes it (or is killed) the contents are simply deleted
by the file system, and bash doesn't have to do the clean-up.

I still don't know whether your original issue is a bug or not, though.

Reply via email to