HackerTrans
TopNewTrendsCommentsPastAskShowJobs

stonedog

no profile record

comments

stonedog
·2년 전·discuss
My apologies if the comment came across as negative. I just meant to say that I didn't want to exchange one set of shell quirks for another. But using {$x}-style grouping is a fine solution too. And in any case I'm sure that bash has a lot more quirks than Elvish :-)

So I'll definitely do more testing with Elvish and see what the overall experience is like. Coming from Solaris, we still have a ton of ksh scripts in our shop (with people working on them who have very different backgrounds and scripting skill levels). Something with less pitfalls than bash would be great... Thanks for putting in your time and effort!
stonedog
·2년 전·discuss
Hi, thanks for your time! I'm really keen on finding alternatives for bash scripting, and from looking at the examples, it seems to go a long way in that direction.

I'm not keen on trading bashisms for elvishisms though :-) A somewhat random example from looking at the docs, where you have this example:

~> curl -s https://dl.elv.sh/$platform:os'-'$platform:arch/elvish-HEAD....

Quoting '-' instead of using (bash-style) "${platform:os}-${platform:arch}" seems really counterintuitive to me. After all, '-' is simply itself (a plain dash), it's the variable name that is special here and deserves quoting. Any thoughts on this?