Coder Social home page Coder Social logo

Comments (3)

AstrobioMike avatar AstrobioMike commented on July 18, 2024

heya @TomOMaley :)

So, it's possible this is due to macs having zsh as default instead of bash, but two things are making me thinks that's not what's going on. One is that you're getting a "no such file or directory" error, and two is that when i test it in a bash shell and a zsh shell, it works in both for me (which i would expect because the "shebang" at the top is pointing to a specific bash: "#!/bin/bash".

Aaah, i just found what i did to mess with you (and who knows how many others...)

At one point i switched from "what_time_is_it.sh" to "what-time-is-it.sh", but i left some in the middle the old way.

So when you were copying and pasting, it was not finding the file because i had you make it different above.

I'm fixing the page now, please let me know if this works as expected:

./what-time-is-it.sh

And THANK YOU for noting this to me so i could fix this unnecessary confusion i left!

AND EDIT I think maybe you caught this too, because it seems you were editing your response to include it at the same time i was posting this, ha :)

from astrobiomike.github.io.

AstrobioMike avatar AstrobioMike commented on July 18, 2024

oh and it's up to you of course, but if you did want to change your default shell, it could be done like this to swap to bash:

chsh -s /bin/bash

or this to swap back to zsh:

chsh -s /bin/zsh

after running it, you'd need to open a new terminal, it won't change the one you run it in 👍

from astrobiomike.github.io.

AstrobioMike avatar AstrobioMike commented on July 18, 2024

also adding note to myself that i'll need to add a note/some text either way when talking about the bash_profile
@AstrobioMike, update that area

from astrobiomike.github.io.

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.