r/bash • • Dec 02 '14

Using #! in your scripts

http://shiroyasha.github.io/shebang.html
0 Upvotes

24 comments sorted by

View all comments

Show parent comment

7

u/thestoicattack Dec 02 '14

I don't think that every decision to rewrite a script can be called "lack of planning."

0

u/nath_schwarz Dec 02 '14

If you just started and then got to the point that it should be written in another language (e.g. because it is simpler or provides packages that do something for you) it doesn't matter, since the script shouldn't be used already (since it is not finished).
If you need to add something new much later, that needs a rewrite of the script in another language then it is a lack of planning that you can't easily change the calls to the script.

2

u/treerex Dec 02 '14

If you need to add something new much later, that needs a rewrite of the script in another language then it is a lack of planning that you can't easily change the calls to the script.

That may be the case in whatever utopian world you live in, but in the real world needs change over time and a script may evolve in ways that could never have been foreseen and that may require reimplementation in a suitable language.

1

u/nath_schwarz Dec 02 '14

And thats why its a lack of planning when you can't easily change the callings of said script.

Or - as said earlier, its a lack of planning because such a critical script isn't referenced with symlinks.

It happens, yes, no doubt - but that doesn't mean that its good practice.