Date:Tue, 22 Sep 2020 10:02:07 +0800
From:Clark Wang
Message-ID:
| In an interactive shell (in case this matters), run bash -c 'sleep 5 &' and
| it exits immediately without waiting for the sleep to complete. But ssh
| user@host 'sleep 5 &' (with bash as the l
In an interactive shell (in case this matters), run bash -c 'sleep 5 &' and
it exits immediately without waiting for the sleep to complete. But ssh
user@host 'sleep 5 &' (with bash as the login shell) would wait for sleep
to complete. Why the difference?
Thanks.
-clark
Andreas Schwab writes:
> On Sep 10 2020, Chet Ramey wrote:
>
>> yy. Process substitution processes now get their input from /dev/null, since
>> they are asynchronous, not interactive, and not jobs.
>
> That breaks scripts that want to filter stdin with a process
> substitution, eg:
>
> while r
Variable transforms such as ${VAR@Q} do not compose with substrings
expansions, eg ${VAR:1:4}.
For example, I expected ${VAR:4@Q} to quote ${VAR:4}, but instead:
-bash: VAR: 4@Q: value too great for base (error token is "4@Q")
This is because parameter value modifiers do not compose; gen
Thanks Chet,
That patch did the trick! All tests pass now. Thanks again for your help!
P.S. I'm going to add this patch to the Spack package manager. Would you or
anyone else be interested in "maintaining" Spack's bash build recipe? You don't
have to be a Spack expert, it just gives us someone
On 9/21/20 11:13 AM, Adam Stewart wrote:
> Thanks Chet,
>
> When I apply your patch it solves the string.h issue but now I see an issue
> with _stdio.h:
[...]
>
> Do you have a patch for this as well?
I have a combined patch. You can apply the second hunk.
Chet
--
``The lyf so shor
Thanks Chet,
When I apply your patch it solves the string.h issue but now I see an issue
with _stdio.h:
snprintf.c:1706:1: error: expected parameter declarator
vsnprintf(char *string, size_t length, const char *format, va_list args)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.
On 9/19/20 12:45 PM, Adam Stewart wrote:
> I recently updated to Xcode 12 on macOS 10.15.6. Xcode 12 comes with Apple
> Clang 12.0.0 (LLVM Clang 10.0.0), which fails to compile bash 5.0.18. This
> can be reproduced with the typical `./configure; make; make install` logic.
Thanks for the report.