Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Possible missing status info for builtins sysopen and sysseek in zsh/system module



Hi again,

On Thu, Apr 28, 2022 at 8:18 AM Jim <linux.tech.guy@xxxxxxxxx> wrote:
Hi,

Man page zshmodules(5.8) seems to be missing status information in module
zsh/system for builtins sysopen and sysseek.  All the other builtins have some
kind of statement for return status. I believe status 0 is success and 1 would
be an error of some kind for both. Don't know if there are other error numbers
or if the parameter ERRNO is used.

Should it be assumed 0 and 1 are the only status numbers if nothing is stated?
 
Can't assume that at least for sysseek.  If fd isn't assigned it returns a status of 2.

Thanks,

Jim Murphy

Jim


Messages sorted by: Reverse Date, Date, Thread, Author