4 ms·
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'
by tombert 6y ago
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.
- j4yav 6y agoI did the exact same thing and assumed I was seeing some strange behaviour on mobile, until I came here.
- kroltan 6y agoYes, 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.
- joshspankit 6y agoI personally think this is the best solution besides implementing ‘./‘: take the colouring off and simply return “permission denied” when someone tries to ‘chmod’
- froh42 6y agoAs "cat cowsay" tells me that cowsay is an executable, I wouldn't expect "sh cowsay" to work in any event.
- amelius 6y agoIf you type "help", it says: sh: run an executable file
- tombert 6y agoYeah, I saw that after, but since it looks like a Unix shell, my first reaction is to just use typical Unix commands.
- aavshr 6y agohi 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.
- ed 6y agoI kept trying `./cowsaydo-not-run-me` because `ls` outputs with no separators (`ls -l` fixed me up)
- comprev 6y agoSame here on mobile (iPhone 7)
- definitelyhuman 6y agoSame here, ls output needs formatting help on mobile. I was hoping glob might work too - could be a useful update
- aavshr 6y agoI implemented './' and it should be live now.
- Scarblac 6y agoAlso 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.
- spurgu 6y agoIt seems to work now. ./cowsay covfefe
- xeromal 6y agoOnce I couldn't figure out how to run it, I typed help and it showed me way to do. Seemed pretty intuitive