Giter VIP home page Giter VIP logo

Comments (4)

budRich avatar budRich commented on June 10, 2024 1

huh. I added this shebang with the hope it would become more portable. https://www.cyberciti.biz/tips/finding-bash-perl-python-portably-using-env.html . I have planned on getting a computer dedictated to ubuntu to be sure that everything works there too, currently i only test this on arch.

Regarding the issue and possible fix, i have to research this to find whats best. I bet that if i change it to #!/bin/bash (that i used before), it won't work on some other distro.

Solution might be to have different shebangs depending on the distro, it is not impossible to achieve with bashbud and makefile magic.

Thank for reporting, and sorry for the late reply.

from i3ass.

budRich avatar budRich commented on June 10, 2024 1

the more i research this shebang stuff the less sure i am which one to use. I am leaning towards using #!/bin/bash again...

from i3ass.

budRich avatar budRich commented on June 10, 2024 1

https://stackoverflow.com/questions/733824/how-to-run-a-shell-script-on-a-unix-console-or-mac-terminal/733901#733901
https://en.wikipedia.org/wiki/Shebang_(Unix)
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=906901#34

from i3ass.

chrisdepas avatar chrisdepas commented on June 10, 2024

Hey, sorry this reply took a year!

Thanks for taking the time to reply and to look into this. I posted this originally from a machine that started as Ubuntu server, which may have been why /usr/bin/env wasn't symlinked by default.

After posting this, I looked into it (and found some of the links you posted), it seems that /usr/bin/env is the way to go in terms of portability.

from i3ass.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.