Chet
--*greywolf;
On 4/5/2021 13:52, Chet Ramey wrote:
On 4/1/21 5:40 PM, Greywolf wrote:
Or do you mean my coding style (which has been valid for over 25 years)?
Hey, if you want to go there, `select' has been inĀ bash with its current
syntax for longer than that. ;-)
(A month over 27 years, if y
On 4/5/2021 6:27, Chet Ramey wrote:
On 4/5/21 5:06 AM, Greywolf wrote:
but if you want to go down that track, it's kind of interesting to note
that {} on a single line demands a ; before the }, while () prohibits
it.
This isn't true:
$ ./bash -c '(echo a b c;)'
a b c
ck of code in a subshell...
but if you want to go down that track, it's kind of interesting to note
that {} on a single line demands a ; before the }, while () prohibits
it. This also seems inconsistent to me, but not at the same level of
egregious brokenness as select.
--*greywolf;
inherited from the Bourne shell, to allow it.
I don't know that I'd call them "special cases" if sh has pretty much
condoned it from the get-go; 'select' is the outlier, from my POV.
--*greywolf;
This effectively classifies (( )) as operators.
But we've drifted considerably afield.
--*greywolf;
ed.
kre
Thank you, again!
--*greywolf;
helps me spot missing quotes.
[I think the only thing I wish would be enhanced and accepted further
was for it to work with case-esac, but that hasn't changed in 25 years,
either, and it's minor, so I'm not holding my breath. :) ]
Cheers,
--*greywolf;
you so much for your response! You got exactly what I was after!
--*greywolf;
On 4/1/2021 9:16, konsolebox wrote:
On Thu, Apr 1, 2021 at 11:25 PM wrote:
if ((n > 1)); then {
echo "Ambiguous dir specification";
exit 1;
}
else {
dir=${d[0]};
} fi;
The grouping is unnecessary or should be separate
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: netbsd
Compiler: gcc
Compilation CFLAGS: -O2 -I/usr/local/include -D_FORTIFY_SOURCE=2 -I/usr/include
uname output: NetBSD eddie.starwolf.com 9.99.81 NetBSD 9.99.81 (EDDIE) #9: Tue
Mar 23 19:13:25 PDT 2021 gre
11 matches
Mail list logo