Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm not sure I understand this point:

  > I use Bash for a lot of my scripts, but not all. For example
  > I have a note-taking script called ~/bin/note which I didn’t
  > want to write in Bash, so I wrote it in Python instead. With
  > an alias, I’d have to write it in Zsh.
If the script is an actual script that does something more than just calling another program, then the comparison to an alias doesn't make sense. And if it's about setting up an alias to a Python program, it can definitely be done. Is there anything I'm missing here?


There isn't a well-defined / binary boundary to an "actual script"; I'm assuming this "note" thing is something like a 10-liner in Python. It's simply two curves of scripting in sh/bash/zsh becoming more difficult vs. Python starting with more effort but a more shallow curve — at some point the curves cross. But that crossover point is different for each person, and the other option doesn't immediately become impossible.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: