Lurker News

Comments (171) 86 threads

Show all comments

Showing thread 2 of 86

tombert9 replies#
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#
I did the exact same thing and assumed I was seeing some strange behaviour on mobile, until I came here.
kroltan2 replies#
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.
joshspankit#
I personally think this is the best solution besides implementing ‘./‘: take the colouring off and simply return “permission denied” when someone tries to ‘chmod’
froh42#
As "cat cowsay" tells me that cowsay is an executable, I wouldn't expect "sh cowsay" to work in any event.
amelius1 reply#
If you type "help", it says:

    sh: run an executable file
tombert#
Yeah, I saw that after, but since it looks like a Unix shell, my first reaction is to just use typical Unix commands.
aavshr#
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.

ed2 replies#
I kept trying `./cowsaydo-not-run-me` because `ls` outputs with no separators (`ls -l` fixed me up)
comprev#
Same here on mobile (iPhone 7)
definitelyhuman#
Same here, ls output needs formatting help on mobile. I was hoping glob might work too - could be a useful update
aavshr2 replies#
I implemented './' and it should be live now.
tdy721#
This "just worked" for me. Nice work
antb123#
tab completion?
Scarblac#
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.
spurgu#
It seems to work now.

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