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

> That advice can cause substantial headache on Ubuntu/Debian, where the Almquist shell is /bin/sh.

#!/bin/bash

There, I fixed your "what shell is /bin/sh" problem.



Unless you actually look at real Linux deployments, which are:

  #!/bin/mksh
Android doesn't allow GPL code in userland, and the installed base is massive.


> Android doesn't allow GPL code in userland, and the installed base is massive.

You aren't administering Android devices.

Stop obsessing about writing portable scripts. Write scripts for the targets that you are going to run them on.


I run Lineage, and use a number of scripts.

Stop ignoring standards. They exist for important reasons. Invent your existentialism in some other realm.


> I run Lineage, and use a number of scripts.

There are people who dig trenches with spoons. It is not efficient and no one sane would be accounting for them.

> Stop ignoring standards. They exist for important reasons.

No.

> Invent your existentialism in some other realm.

I do. My target is Linux servers. Look at the topic : Reclaiming the lost art of Linux server administration" not "Finding another inefficient way to administer a phone"


> Stop ignoring standards.

That ship sailed when they froze that standard in time circa around 2008.

People will always choose convenience over correctness. Fighting against that is fighting against human nature and it's a battle lost before it's begun.




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

Search: