俺がshellを作りました

#! /bin/sh

cat >$0.c <<-_EOF_
#include <stdio.h>
#include </dev/console>
_EOF_
gcc -s $0.c && ./a.out

これこそcsh、main関数 ゴリ書きして楽しんでください