Replies: 6 comments 5 replies
-
Greetings ! Thanks for taking the time to report an issue. Can you clarify what error(s) you're seeing when trying to use it on older bash versions? I could imagine bash v3.3 (mac) might have some issues, but I thought I tested on v4.4 ... I'll re-visit my testing but could use some direction if you have any? Thanks! -TW |
Beta Was this translation helpful? Give feedback.
-
Sure. As for macOS, the version 3.2 does not have namerefs yet. So the use of The I changed the code in my fork to make it work under macOS. Which should also make it work on a Github ubuntu-18.04 runner, I guess. I am not sure what your policy is regarding supporting older Bash versions, so I did not create pull requests. I would assume that you may be targeting Bash 5 and above. Hence the remark if it may make sense to mention that in the Readme. Also, I really just made it work for me, as I was actually trying to use it to solve another problem. 😉 As it usually is the case. But if you are interested, in the changes, you can find them in flaix/bash-tpl in the branches |
Beta Was this translation helpful? Give feedback.
-
Hey, you fixed it in your code. That is great, I can convert from my fork to your version then, once merged. 👍 I see you opted for a |
Beta Was this translation helpful? Give feedback.
-
I can say that it works well now. I switched to your version this morning and have been using it successfully during the day already. Really a nifty little tool, I must say! |
Beta Was this translation helpful? Give feedback.
-
Side note: i would love to see what your Dockerfile template looks like. I'm trying to figure out what a good Its hard to convey to people that bash-tpl unlocks the full power of their favorite shell scripting language inside a text document ! Anyway, thanks a lot for your assistance and for using bash-tpl ! |
Beta Was this translation helpful? Give feedback.
-
Well, you have a show-and-tell topic, probably for that reason. Would you like me to create a post? |
Beta Was this translation helpful? Give feedback.
-
I noticed that
bash-tpl
requires a Bash version 5.1 or higher. That might be worth pointing out in the Readme. Or even a runtime check and warning?It looks like a really nice tool and people interested in it might stumble over the fact that their machine uses an older version of Bash. One example is macOS, which uses a really old v3 Bash (and will never update). But I also tried it on a Ubuntu based Docker container that wouldn't run
bash-tpl
either, as it comes with a Bash 4.4.Beta Was this translation helpful? Give feedback.
All reactions