News for hackers. Stuff that matters.
Re:Pure Bash Web Server by dzove855 on Friday February 16, 2024 @10:00AM (#39397908)
Creator here:

I'm really happy to see somebody shared it on hackernews :D If you have some questions, feel free to ask me

Re:Pure Bash Web Server by zamadatix on Friday February 16, 2024 @12:07PM (#39399815)
Hey, great work! Reading through I started wonder how necessary the loadables are? It'd be fun to have one that's not dependent on loadbales, even if it's not as clean. E.g. could mktemp be replaced with a timestamp named directory or something? Can rm be avoided by just allowing garbage to pile up? Is finfo something that can be worked around in some way?
Re:Pure Bash Web Server by dzove855 on Friday February 16, 2024 @12:12PM (#39399877)
Hello,

You could avoid loadables.

Finfo <- load file inside a variable and get the size Mktemp <- like you said with timestamp Rm <- with a fifo or variable

Re:Pure Bash Web Server by zamadatix on Friday February 16, 2024 @12:20PM (#39399996)
Ah "stick it in a variable" seems obvious now, good point!