Conversation
|
That script is so far from "good" practice for shell scripting that I think we should simply remove the link to it. If you're going to the trouble of replacing Replacing |
|
Im really no expert in bash scriptign or POSIX compliance. I just noticed, that it did not do what it's supposed to do. E.g. the decreasing sequence wasn't rendered at all. (at least on my machine.) We can change it back to |
|
So, i updated the script again. I think it's now POSIX compatible ... https://gitlab.gwdg.de/janphilipp.ressler/dotfiles/-/raw/main/bin/24bit-color-test |
|
The reason I mention And I mention "not POSIX" because in Bash you can just write: or to count in reverse These examples assume both upper and lower bounds are inclusive. |
Ok, but why would i not want to use I actually don't get the points you want to make. It is probably because you are much more experience in this whole shell scripting stuff. So please, can you go a little bit more into reasoning of what is the 'actual' problem .... What are the aspects that are relevant? If, on the other hand, you don't have any intent of updating the current linked script or want to remove it, then do it. I don't mind. I have the script i want in my repo now. |

Hi,
I just tried the 24-bit-color.sh script and I spotted some bugs. Just fixed them and pushed them in my private dotfiles and figured it would be nice to update the link in this repo too.
btw: i think the other script "img.sh" also doesn't work as shown in this repos README.md because it needs an argument.