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

This if fun, few suggestions.

The first command I ran was `ls`, which worked as expected, but then I tried running `./cowsay blah`, which didn't work. I wasn't sure how to run it until eventually I guessed `sh cowsay blah`, and it worked.

Maybe make the `./` shortcut for executing stuff?

While I'm not sure how much work it would be, it might also be kind of cool to implement the `cd` command as well.



I implemented './' and it should be live now.


This "just worked" for me. Nice work


tab completion?


I kept trying `./cowsaydo-not-run-me` because `ls` outputs with no separators (`ls -l` fixed me up)


Same here, ls output needs formatting help on mobile. I was hoping glob might work too - could be a useful update


Same here on mobile (iPhone 7)


Yes, especially since cowsay was marked in a different color!

Expected behaviour from *nix would be that you'd either

  sh somescript.sh
Or

  ./someexecutable
Of course the extension is not technically required, but it would help in the UX for the user to try running it on the sh command.


As "cat cowsay" tells me that cowsay is an executable, I wouldn't expect "sh cowsay" to work in any event.


I personally think this is the best solution besides implementing ‘./‘: take the colouring off and simply return “permission denied” when someone tries to ‘chmod’


hi thanks for the suggestion.

Yes, I plan to implement './' which is the expected behavior for running executables. I also plan to implement 'cd' and organize the content into nix style directories.


I did the exact same thing and assumed I was seeing some strange behaviour on mobile, until I came here.


Also I was wondering what 'do-not-run-me' would be so my first try was 'file do-not-run-me', but alas, that command didn't exist.


If you type "help", it says:

    sh: run an executable file


Yeah, I saw that after, but since it looks like a Unix shell, my first reaction is to just use typical Unix commands.


Once I couldn't figure out how to run it, I typed help and it showed me way to do. Seemed pretty intuitive


It seems to work now.

    ./cowsay covfefe




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

Search: