I'm trying to use ulimit under ksh, with the -a option (ulimit -a), but I've got an error message. Back in sh, this works very well. Is this normal (sh_posix != ksh) ? Is there a tool under ksh to perform the same job.
Hi, ulimit will be set to unlimited in sh(posix), whereas in ksh ulimit will be set to a value. hence the error. there is no tool under ksh to perform the same.
If you look at the man pages for 'ksh' you will find that 'ulimit' is much more limited (no pun intended) than the POSIX shell version.
The POSIX shell (/sbin/sh or /usr/bin/sh) is a superset of the Korn shell (ksh). I would urge you to use the POSIX shell in lieu of the Korn one.
Whatever you choose, however, *never* change root's shell from '/sbin/sh' to anything else! Failure to heed this advice will leave you with an unbootable system.