Comments on: Writing a Shell http://www.terminally-incoherent.com/blog/2006/04/13/writing-a-shell/ I will not fix your computer. Tue, 04 Aug 2020 22:34:33 +0000 hourly 1 https://wordpress.org/?v=4.7.26 By: Chris Wellons http://www.terminally-incoherent.com/blog/2006/04/13/writing-a-shell/#comment-12083 Fri, 17 Apr 2009 16:34:27 +0000 http://www.terminally-incoherent.com/blog/?p=490#comment-12083

Psht, that project a C one-liner!

int main () { execl("/bin/sh", (void *)0); }

Just pipe that into gcc and call it a day. ;-)

echo 'int main(){execl("/bin/bash",(void*)0);}' | gcc -xc -o lukesh -

Reply  |  Quote
]]>
By: ZeWrestler http://www.terminally-incoherent.com/blog/2006/04/13/writing-a-shell/#comment-160 Fri, 14 Apr 2006 23:37:00 +0000 http://www.terminally-incoherent.com/blog/?p=490#comment-160

?*stands up and takes a bow*

stnndard price for that code. ussual routine, first born child and a new jag.

but the UML i made for it, i’ll give out for free (if i can find it) lol

enjoy that was a fun project. if you decide that you want to expand that shell afterwards let me know, the rediection and pipes sounds fun.

Reply  |  Quote
]]>