3 ms·
> If you wrote a python script a few years ago in Python 2 it isn't supported today, never mind in 50 years. But I'd sooner port a Python 2 script from a few y
by lmm 7y ago
> If you wrote a python script a few years ago in Python 2 it isn't supported today, never mind in 50 years.
But I'd sooner port a Python 2 script from a few years ago to Python 3 than try to understand a Bash script from a few years ago.
- einpoklum 7y ago1. But you won't need to port the bash script, it'll likely just work. 2. Bash is not that complex of a language; it mostly just has somewhat arcane shorthands, like `$@` and `-n` and such. So, yes, you need the manual, but it's not a lot of mental effort.
- lmm 7y ago> 1. But you won't need to port the bash script, it'll likely just work. Well, Python 2 code will likely just work too. > 2. Bash is not that complex of a language; it mostly just has somewhat arcane shorthands, like `$@` and `-n` and such. So, yes, you need the manual, but it's not a lot of mental effort. If you're only counting bash qua bash then yes, but in practice most of the logic of a "bash script" will be in (non-standardised) commands that are invoked from it rather than the script itself.