summaryrefslogtreecommitdiff
path: root/bin/ksh/sh.1
AgeCommit message (Collapse)Author
2014-12-09put back some information what the character classes actually mean;Ingo Schwarze
while here, remove the lie that regex(3) character classes would depend on the locale; ok jmc@
2014-12-09no more ctype(3);Jason McIntyre
2014-08-17update the built-ins list:Jason McIntyre
- "times" is both promoted to posix and special (ooh!) - "pwd" is promoted to posix, but not special (aah!) while here, jiggle the text somewhat to clarify that "non-POSIX" actually meant when posix mode is off, not mandated by posix joint work with guenther
2014-02-12missing .An macros, based on a patch from Jan Stary <hans at stare dot cz>Ingo Schwarze
2014-01-28update book references;Jason McIntyre
From: Jan Stary tweaked a bit by myself
2013-06-13Document correct interaction of -e flag with && and ||. OK jmc@Todd C. Miller
2013-01-17remove some uesless Pp;Jason McIntyre
2012-06-19for arithmetic expressions, note that:Jason McIntyre
+A parameter that is NULL or unset evaluates to 0. original diff from robert peichaer this version from naddy
2011-09-03make -column lists pretty again;Jason McIntyre
specifically, rewrite them to permit some markup in the column headers, and use "Ta" instead of literal tabs; mandoc does not currently match groff 100%, but a mandoc fix may be some time off, and we've gone enough releases with poorly formatting column lists. in some cases i have rewritten the lists as -tag, where -column made little sense.
2011-04-23improve line breaking in SYNOPSIS now that semantics of the .Bk macroIgor Sobrado
has changed to conform with modern groff releases. diff for route6d(8) written mostly by schwarze@, with lots of useful advice from jmc@. ok jmc@, schwarze@
2010-09-20according to ingo, it isn;t a problem to have empty [BDS]q macros, soJason McIntyre
revert that part of yesterday's diffs;
2010-09-18some macro cleanup:Jason McIntyre
- remove some old groff workarounds in SYNOPSIS - avoid "Op ... Oc" constructions - avoid empty Sq/Dq - change some incorrect Xr
2010-07-15When the first argument or arguments of a macro are opening delimitersIngo Schwarze
(parentheses and/or square brackets), both modern groff and mandoc first output those leading delimiters as plain text, then start the macro scope after these opening delimiters. This is similar to printing trailing punctuation and trailing closing delimiters on a macro line outside and after the macro scope. For example, ".Sq ( text )" is "(`text')", not "`(text)'". Thus, we now need to quote leading opening delimiters when we want them inside the macro scope. These are the cases in src/bin. "makes sense" jmc@
2010-07-12ksh.1: add ((, )), ]], and `name' to the list of reserved words for compoundsJason McIntyre
sh.1: add ]] and `name' to the list; additionally document the commands `select' (requested by Ross L Richardson) and [[ ok millert sobrado
2010-05-10tweak previous;Jason McIntyre
2010-05-10unset doesn't fail except for read-only variables and functionsMatthias Kilian
ok guenther@
2010-02-25get rid of overlapping blocks discouraged by mdoc.samples(7);Ingo Schwarze
found by and unbreaking the build with mandoc(1); "fine" jmc@ sobrado@
2009-03-06after some discussion with millert, pull in the character class infoJason McIntyre
from glob(7) to the shell pages - they have their own glob stuff, and pointing to glob(7) is just not helpful. ok millert
2009-03-05Add glob(7) and refer to it. OK jmc@ sobrado@Todd C. Miller
2009-03-03Add POSIX character class support ([:alpha:] and friends) to ksh globbing.Todd C. Miller
OK deraadt@ krw@ jmc@ sobrado@
2009-02-07some tweaks for previous that got missed;Jason McIntyre
2009-02-07Make built-in echo behave according to POSIX when set -o posix is in effect:Philip Guenthe
the only option is -n, and only one of those is parsed. diff from Ingo Schwarze ok otto@ kili@; manpage changes ok jmc@
2009-01-29pass "xerrok" status across the execution call stack to more closelyJared Yanovich
match what both POSIX and ksh.1 already describe in regards to set -e/errexit's behavior in determining when to exit from nonzero return values. specifically, the truth values tested as operands to `&&' and `||', as well as the resulting compound expression itself, along with the truth value resulting from a negated command (i.e. a pipeline prefixed `!'), should not make the shell exit when -e is in effect. issue reported by matthieu. testing matthieu, naddy. ok miod (earlier version), otto. man page ok jmc.
2008-03-21Make ulimit able to get and set multiple limits in a single invocationTodd C. Miller
like bash and zsh do. Requested by espie@, OK deraadt@
2007-05-31Only process ENV when in interactive mode as SU says. Started byOtto Moerbeek
tedu to fix make -j, SU thing spotted by naddy@; ok millert@ @tedu jmc@ for the man page bit.
2007-05-31convert to new .Dd format;Jason McIntyre
2006-07-26clarifications for OPTIND:Jason McIntyre
hunk #1 from tamas tevesz; hunk #2 from otto; ok otto
2006-03-07simplify the description of what a restricted shell is:Jason McIntyre
sh.1 does not need to talk about rksh; ksh.1 does not need to talk about rsh; also references to rpdksh are not really helpful; from tamas tevesz; ok jaredy
2005-10-07remove mknod documentation - although /bin/sh supports it, this pageJason McIntyre
documents a posix shell (as far as possible); ok otto@
2005-10-06Introducing mknod as a built-in. It might be against the unixOtto Moerbeek
philosophy, but in this case it's worth it. ok deraadt@
2005-09-07LINES and \\ in PS1 prompt are implemented, so remove informationJason McIntyre
which says they are not; from matthias kilian (pr #4476); ok otto@
2005-08-21Comment out description for 'ulimit -v' since we don't supportTodd C. Miller
RLIMIT_VMEM / RLIMIT_AS at the moment. Support for those may go in post-3.8.
2005-06-01add missing detail from IFS exampleJared Yanovich
Originally from TAKAHASHI Tamotsu <ttakah@lapis.plala.or.jp> from PR 4220 reminded by jmc
2005-05-12.Xr script 7Jason McIntyre
2005-02-18sort options to echo builtin;Jason McIntyre
2005-02-08use command prompts and literal for commands;Jason McIntyre
2005-02-08big overhaul of these pages, to make them clearer to read;Jason McIntyre
various other issues fixed along the way; lots of stuff from jaredy@ in here too..
2005-02-05note that symlinks in test file are followed, except -h and -LJason McIntyre
(just like test(1) does); from paul de weerd;
2005-02-02Introduce POSIX hex and octal (0x... and 0...) constants in arithmeticOtto Moerbeek
expressions. Work by Matthias Kilian, based on an old diff by myself. Note: MAKEDEV should be updated. Tested by many, thanks. ok millert@ deraadt@
2005-01-21fix missing list item: *(...); spotted by Frank Sander frksndr atOtto Moerbeek
gmx dot de. ok jmc@
2005-01-17typo;Jason McIntyre
2005-01-10typo;Jason McIntyre
2004-12-22These man pages are not derived from UCB and are actually public domain.Todd C. Miller
Verified with aaron@ who did the conversion from man -> mdoc.
2004-12-22Our times(3) just calls getrusage(2) and gettimeofday(2), converting secondsTodd C. Miller
to ticks. Since ksh needs things in seconds it then converted them back. Avoid the silliness and use the getrusage(2) and gettimeofday(2) directly. With man page help from jmc@
2004-12-12escape punctuation;Jason McIntyre
2004-12-12csh-style ! history completion, which can be activated by usingTheo de Raadt
set -o csh-history (off by default) this is not feature complete, and likely never will be. no ^ and ! has some oddities ... ksh's internal history stuff has got some very odd behaviours that are rather nasty ok various developers
2004-12-10flurry of updates:Jared Yanovich
- be more consistent w.r.t. variables in macros with `.Ic' instead of `.Va' - document changes in IFS parsing - minimize diffs between ksh.1tbl and sh.1tbl w.r.t. `.Nm' macros and in other places - sort recognized keywords and remove dependency on tbl(1) - indent example displays - kill `bind' - collapse `test' display, it has two entries for `str', and use different args for file time tests - grammar, punctuation, and mdoc fixes - tidy display of `alias' and `kill' ok and bits from jmc
2004-11-09/bin/sh supports PS1 expansion;Jason McIntyre
2004-11-05incorrect markup was messing the description of IFS. i've rearranged itJason McIntyre
slightly so that no one (me, most likely) falls for it again. also, make sh(1)'s IFS description a little more consistent.
2004-10-28fix spacing after period at EOL. from ray@cyth.netJared Yanovich