Re: ${| command; } funsub not setting REPLY does not error out with 'set -u' active

2024-12-25 Thread Zachary Santer
On Tue, Dec 24, 2024 at 7:51 PM Lawrence Velázquez wrote: > > On Tue, Dec 24, 2024, at 12:10 PM, Zachary Santer wrote: > > Some other nonsense real quick: > > > > zsant@Zack2021HPPavilion MSYS ~/repos/bash > > $ : ${| REPYL="whatever"} > > ; } > > bash: syntax error near unexpected token `;' whil

Re: ${| command; } funsub not setting REPLY does not error out with 'set -u' active

2024-12-25 Thread microsuxxor
https://lists.gnu.org/archive/html/help-bash/2022-08/msg00021.html On Wed, Dec 25, 2024, 2:37 PM Zachary Santer wrote: > On Tue, Dec 24, 2024 at 7:51 PM Lawrence Velázquez wrote: > > > > On Tue, Dec 24, 2024, at 12:10 PM, Zachary Santer wrote: > > > Some other nonsense real quick: > > > > > > z

Re: Bash' code to store string of any characters containing pair of "" and '' at once

2024-12-25 Thread Dale R. Worley
Greg Wooledge writes: >> You need to escape one of the types of quotes. Double quotes is >> generally simpler: >> >> $ x="foo \"foo\" and 'bar' content" >> $ echo "$x" >> foo "foo" and 'bar' content > > Only in this restricted case. Using double quotes as the outer layer > means you have to back