That post seems to be missing.
load all comments
rimu 17 points 5 days ago

While it is technically possible to write shell scripts that do as much as what you're attempting to, it's not a good idea.

Shell scripts generally don't have the development environment necessary for debugging. You can't pause execution based on a breakpoint and inspect variables, or step through the code line by line to watch the execution flow as it happens. Well, bashdb exists, but it's quite hard to use.

Without proper debugging tooling you're limited to printing stuff out on the screen and trying to figure out what that means. That's ok for short scripts (< 50 lines?) but yours is 700+ lines.

path: 0 24309695, hotness: undefined, score: 17, children: 8
iloveDigit 1 point 5 days ago

Thank you for the reply. Python keeps being suggested, what would you suggest if I end up changing rails here?

path: 0 24309695 24309793, hotness: undefined, score: 1, children: 2
rimu 9 points 5 days ago

I was going to suggest Python too but you'll need to be careful to just use functionality that is part of the standard library because once you start pulling in 3rd party packages deployment is much harder and portability seems to be a requirement here. That should be doable with your case.

The free edition of PyCharm is great for debugging.

path: 0 24309695 24309793 24309867, hotness: undefined, score: 9, children: 1
iloveDigit -2 points 5 days ago

Keeping python in mind then. For now I think I've gotta keep trying with a shell script because it can fit the whole decoder in 2 QR codes (1 for each step, extracting+reassembling) with zbarimg+ffmpeg as the only dependencies

Maybe I should use python for the main version but keep a shell script mini decoder option available

path: 0 24309695 24309793 24309867 24309902, hotness: undefined, score: -2, children: 0

thanks for using Leebra!

go to feed...