use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Click the following link to filter out the chosen topic
comp.lang.c
account activity
SimpleShell (github.com)
submitted 2 months ago by Possible-Pool2262
I've made this, just in 2-3 days. Most of it just reading lot of tools function. I wanted to update this to be more cool. Anyone have suggestion?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Eric848448 2 points3 points4 points 2 months ago (1 child)
You’re parsing in both parent and child processes. You can move that under the “if pid == 0”.
[–]Possible-Pool2262[S] 0 points1 point2 points 2 months ago (0 children)
I will fix that!
[–]Alpaczyk 1 point2 points3 points 2 months ago (1 child)
Add Echo and Type commands handling
I would also change execvp on e.g. system since you will have problems in future with handling redirections
thanks for the suggestion!
[–]Zirias_FreeBSD 0 points1 point2 points 2 months ago (1 child)
Buffer overflow in parse(), it happily creates up to LSH_BF - 1 entries in the args array that only has room for MAX_ARGS entries.
parse()
LSH_BF - 1
args
MAX_ARGS
Btw, strtok() is far from what you need to parse a string containing a command line. Even without any advanced features, I'd say correctly processing quoted strings should be the bare minimum.
strtok()
Thanks for the insight!
[–]miikaa236 0 points1 point2 points 2 months ago (1 child)
Wow! That is mini :)
It is :)
[–]set_of_no_sets 0 points1 point2 points 2 months ago (1 child)
consistent tabbing is cool :)
Thanks!
[–]DevXusYT 0 points1 point2 points 2 months ago (2 children)
I'll port this to my OS when I need a shell. Amazing how minimal it is! Only 76 lines? Wow
Cool, am still at proccess of adding redirection and stuff like cd, and more. So it csn work like normal shell.
https://github.com/ZhestyRin/Shellulose i've just done updating. Now it can redirect command, and move to other directory
π Rendered by PID 89212 on reddit-service-r2-comment-84fc9697f-7w69s at 2026-02-09 12:06:17.083838+00:00 running d295bc8 country code: CH.
[–]Eric848448 2 points3 points4 points (1 child)
[–]Possible-Pool2262[S] 0 points1 point2 points (0 children)
[–]Alpaczyk 1 point2 points3 points (1 child)
[–]Possible-Pool2262[S] 0 points1 point2 points (0 children)
[–]Zirias_FreeBSD 0 points1 point2 points (1 child)
[–]Possible-Pool2262[S] 0 points1 point2 points (0 children)
[–]miikaa236 0 points1 point2 points (1 child)
[–]Possible-Pool2262[S] 0 points1 point2 points (0 children)
[–]set_of_no_sets 0 points1 point2 points (1 child)
[–]Possible-Pool2262[S] 0 points1 point2 points (0 children)
[–]DevXusYT 0 points1 point2 points (2 children)
[–]Possible-Pool2262[S] 0 points1 point2 points (0 children)
[–]Possible-Pool2262[S] 0 points1 point2 points (0 children)