Get yourself the 7th edition of the Unix Programmer Manual (Volume 1) and program the shell described there (Bourne). You can go to the System V (Bourne) shell if you find the appropriate manual; it has several additional functions, such as functions that the 7th edition shell did not have, and they are essentially available everywhere. (This is a very conservative position - but it will give you maximum mobility.)
, , , . , GNU grep , . , GNU sed , . script , , .
, POSIX. POSIX , , . , POSIX , $(...) , Bourne. , () .
, Autoconf . , , , m4, .
, , Bourne/Korn/POSIX C Shell. " C-".