I implemented './' and it should be live now.
This "just worked" for me. Nice work
Re:Show HN: My personal website is a shell
by antb123 on Thursday April 08, 2021 @04:35AM
(#26736434)
tab completion?
I kept trying `./cowsaydo-not-run-me` because `ls` outputs with no separators (`ls -l` fixed me up)
Re:Show HN: My personal website is a shell
by definitelyhuman on Monday April 05, 2021 @05:55PM
(#26705184)
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.
Re:Show HN: My personal website is a shell
by joshspankit on Monday April 05, 2021 @12:59PM
(#26701545)
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.
Re:Show HN: My personal website is a shell
by Scarblac on Monday April 05, 2021 @03:32PM
(#26703517)
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 fileYeah, I saw that after, but since it looks like a Unix shell, my first reaction is to just use typical Unix commands.
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.