News for hackers. Stuff that matters.
Re:Show HN: My personal website is a shell by tombert on Monday April 05, 2021 @12:27PM (#26701062)
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.

Re:Show HN: My personal website is a shell by aavshr on Monday April 05, 2021 @02:45PM (#26702905)
I implemented './' and it should be live now.
Re:Show HN: My personal website is a shell by tdy721 on Monday April 05, 2021 @06:45PM (#26705614)
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?
Re:Show HN: My personal website is a shell by ed on Monday April 05, 2021 @01:17PM (#26701750)
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
Re:Show HN: My personal website is a shell by comprev on Monday April 05, 2021 @03:33PM (#26703537)
Same here on mobile (iPhone 7)
Re:Show HN: My personal website is a shell by kroltan on Monday April 05, 2021 @12:45PM (#26701330)
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.
Re:Show HN: My personal website is a shell by froh42 on Monday April 05, 2021 @01:01PM (#26701566)
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’
Re:Show HN: My personal website is a shell by aavshr on Monday April 05, 2021 @12:56PM (#26701498)
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.

Re:Show HN: My personal website is a shell by j4yav on Monday April 05, 2021 @12:39PM (#26701253)
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.
Re:Show HN: My personal website is a shell by amelius on Monday April 05, 2021 @12:56PM (#26701493)
If you type "help", it says:

    sh: run an executable file
Re:Show HN: My personal website is a shell by tombert on Monday April 05, 2021 @01:08PM (#26701654)
Yeah, I saw that after, but since it looks like a Unix shell, my first reaction is to just use typical Unix commands.
Re:Show HN: My personal website is a shell by xeromal on Tuesday April 06, 2021 @12:19AM (#26707909)
Once I couldn't figure out how to run it, I typed help and it showed me way to do. Seemed pretty intuitive
Re:Show HN: My personal website is a shell by spurgu on Monday April 05, 2021 @08:46PM (#26706677)
It seems to work now.

    ./cowsay covfefe