Git Product home page Git Product logo

Comments (5)

JoshHarmon avatar JoshHarmon commented on June 8, 2024

Yeah --- I don't use zsh (or any other shell)... so I'm pretty much out on this one, I think.

Josh Harmon
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)

On Saturday, May 11, 2013 at 3:03 PM, FΓ‘bio Maia wrote:

I would expect people to run the script on shells other than bash. I myself use zsh, and it's certainly quite popular in the web development community. As such I think it's important to make the script as portable as possible.
I just gave it a run on zsh and it's totally failing. So we need to fix it and make it work on the various shells out there. I did some research and I've already committed some stuff. I'll just dump the links here if it's any useful. They're all about bash technically, but you'll often find POSIX-compliant solutions to stuff.
http://andreinc.net/2011/09/04/bash-scripting-best-practice/
http://mywiki.wooledge.org/BashPitfalls
http://mywiki.wooledge.org/BashFAQ

β€”
Reply to this email directly or view it on GitHub (#2).

from mybb-shetup.

darksonic37 avatar darksonic37 commented on June 8, 2024

Made some significant progress on this in the last couple commits.

from mybb-shetup.

JoshHarmon avatar JoshHarmon commented on June 8, 2024

How far along would you say this is? I myself have never ventured into POSIX compliance standards, so I wouldn't know.

from mybb-shetup.

darksonic37 avatar darksonic37 commented on June 8, 2024

I kinda had to learn myself. Right now, the pause() function doesn't work under zsh. read -p is a bash thing, zsh requires a different syntax (hence why I made the generic prompt functions to abstract that away). I'm looking into it. In the meantime, feel free to fix it if you have any idea how.

I haven't tested any further, but I did considerable research and I think the code is fine. I'm not aiming for full portability in the sense of POSIX compliance, bash and zsh compatibility is cool with me. Very few people use anything else. Nonetheless the script should work under the older Bourne shell and stuff.

from mybb-shetup.

darksonic37 avatar darksonic37 commented on June 8, 2024

I'll just dump this link here so I don't forget about it.

http://google-styleguide.googlecode.com/svn/trunk/shell.xml

from mybb-shetup.

Related Issues (8)

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.