bit more on POSIX

This commit is contained in:
tg 2014-11-25 22:46:47 +00:00
parent 643bbe7c60
commit 93448bdf66

18
mksh.1
View File

@ -1,4 +1,4 @@
.\" $MirOS: src/bin/mksh/mksh.1,v 1.344 2014/10/07 15:30:12 tg Exp $ .\" $MirOS: src/bin/mksh/mksh.1,v 1.345 2014/11/25 22:46:47 tg Exp $
.\" $OpenBSD: ksh.1,v 1.153 2014/08/17 07:15:41 jmc Exp $ .\" $OpenBSD: ksh.1,v 1.153 2014/08/17 07:15:41 jmc Exp $
.\"- .\"-
.\" Copyright © 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, .\" Copyright © 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
@ -74,7 +74,7 @@
.\" with -mandoc, it might implement .Mx itself, but we want to .\" with -mandoc, it might implement .Mx itself, but we want to
.\" use our own definition. And .Dd must come *first*, always. .\" use our own definition. And .Dd must come *first*, always.
.\" .\"
.Dd $Mdocdate: October 7 2014 $ .Dd $Mdocdate: November 25 2014 $
.\" .\"
.\" Check which macro package we use, and do other -mdoc setup. .\" Check which macro package we use, and do other -mdoc setup.
.\" .\"
@ -6457,6 +6457,17 @@ If you require 64-bit integer arithmetics, use
instead, but be aware that, in POSIX, it's legal for the OS to make instead, but be aware that, in POSIX, it's legal for the OS to make
.Li print $((2147483647 + 1)) .Li print $((2147483647 + 1))
delete all files on your system, as it's Undefined Behaviour. delete all files on your system, as it's Undefined Behaviour.
.Pp
.Nm mksh
provides a consistent, clear interface normally.
This may deviate from POSIX in optional or opinionated places, such
as whether leading-digit-zero numbers should be interpreted as octal.
.Ic set \-o posix
will cause the shell (either
.Nm mksh
or
.Nm lksh )
to behave more like the standard expects.
.Sh BUGS .Sh BUGS
Suspending (using \*(haZ) pipelines like the one below will only suspend Suspending (using \*(haZ) pipelines like the one below will only suspend
the currently running part of the pipeline; in this example, the currently running part of the pipeline; in this example,
@ -6475,9 +6486,12 @@ compiled without any options impacting functionality, such as
when not called as when not called as
.Pa /bin/sh .Pa /bin/sh
which, on some systems only, enables which, on some systems only, enables
.Ic set \-o posix
or
.Ic set \-o sh .Ic set \-o sh
automatically (whose behaviour differs across targets), automatically (whose behaviour differs across targets),
for an operating environment supporting all of its advanced needs. for an operating environment supporting all of its advanced needs.
.Pp
Please report bugs in Please report bugs in
.Nm .Nm
to the to the