mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Fix various minor problems and update the documentation (#237)
These are minor fixes I've accumulated over time. The following
changes are somewhat notable:
- Added a missing entry for 'typeset -s' to the man page.
- Add strftime(3) to the 'see also' section. This and the date(1)
addition are meant to add onto the documentation for 'printf %T'.
- Removed the man page the entry for ksh reading $PWD/.profile on
login. That feature was removed in commit aa7713c2.
- Added date(1) to the 'see also' section of the man page.
- Note that the 'hash' command can be used instead of 'alias -t' to
workaround one of the caveats listed in the man page.
- Use an 'out of memory' error message rather than 'out of space'
when memory allocation fails.
- Replaced backticks with quotes in some places for consistency.
- Added missing documentation for the %P date format.
- Added missing documentation for the printf %Q and %p formats
(backported from ksh2020: https://github.com/att/ast/pull/1032).
- The comments that show each builtin's options have been updated.
This commit is contained in:
parent
2d7e9a0d6d
commit
814b5c6890
151 changed files with 378 additions and 378 deletions
|
|
@ -50,7 +50,7 @@ export ENV=/.$rc
|
|||
if [[ -o privileged ]]
|
||||
then
|
||||
[[ $(print env_hit | $SHELL 2>&1) == "OK" ]] &&
|
||||
err_exit 'privileged nointeractive shell reads $ENV file'
|
||||
err_exit 'privileged noninteractive shell reads $ENV file'
|
||||
[[ $(print env_hit | $SHELL -E 2>&1) == "OK" ]] &&
|
||||
err_exit 'privileged -E reads $ENV file'
|
||||
[[ $(print env_hit | $SHELL +E 2>&1) == "OK" ]] &&
|
||||
|
|
@ -61,7 +61,7 @@ then
|
|||
err_exit 'privileged --norc reads $ENV file'
|
||||
else
|
||||
[[ $(print env_hit | $SHELL 2>&1) == "OK" ]] &&
|
||||
err_exit 'nointeractive shell reads $ENV file'
|
||||
err_exit 'noninteractive shell reads $ENV file'
|
||||
[[ $(print env_hit | $SHELL -E 2>&1) == "OK" ]] ||
|
||||
err_exit '-E ignores $ENV file'
|
||||
[[ $(print env_hit | $SHELL +E 2>&1) == "OK" ]] &&
|
||||
|
|
@ -78,7 +78,7 @@ export ENV=/./dev/null
|
|||
if [[ -o privileged ]]
|
||||
then
|
||||
[[ $(print env_hit | HOME=$tmp $SHELL 2>&1) == "OK" ]] &&
|
||||
err_exit 'privileged nointeractive shell reads $HOME/.kshrc file'
|
||||
err_exit 'privileged noninteractive shell reads $HOME/.kshrc file'
|
||||
[[ $(print env_hit | HOME=$tmp $SHELL -E 2>&1) == "OK" ]] &&
|
||||
err_exit 'privileged -E ignores empty $ENV'
|
||||
[[ $(print env_hit | HOME=$tmp $SHELL +E 2>&1) == "OK" ]] &&
|
||||
|
|
@ -89,7 +89,7 @@ then
|
|||
err_exit 'privileged --norc reads $HOME/.kshrc file'
|
||||
else
|
||||
[[ $(print env_hit | HOME=$tmp $SHELL 2>&1) == "OK" ]] &&
|
||||
err_exit 'nointeractive shell reads $HOME/.kshrc file'
|
||||
err_exit 'noninteractive shell reads $HOME/.kshrc file'
|
||||
[[ $(print env_hit | HOME=$tmp $SHELL -E 2>&1) == "OK" ]] &&
|
||||
err_exit '-E ignores empty $ENV'
|
||||
[[ $(print env_hit | HOME=$tmp $SHELL +E 2>&1) == "OK" ]] &&
|
||||
|
|
@ -104,7 +104,7 @@ unset ENV
|
|||
if [[ -o privileged ]]
|
||||
then
|
||||
[[ $(print env_hit | HOME=$tmp $SHELL 2>&1) == "OK" ]] &&
|
||||
err_exit 'privileged nointeractive shell reads $HOME/.kshrc file'
|
||||
err_exit 'privileged noninteractive shell reads $HOME/.kshrc file'
|
||||
[[ $(print env_hit | HOME=$tmp $SHELL -E 2>&1) == "OK" ]] &&
|
||||
err_exit 'privileged -E reads $HOME/.kshrc file'
|
||||
[[ $(print env_hit | HOME=$tmp $SHELL +E 2>&1) == "OK" ]] &&
|
||||
|
|
@ -115,7 +115,7 @@ then
|
|||
err_exit 'privileged --norc reads $HOME/.kshrc file'
|
||||
else
|
||||
[[ $(print env_hit | HOME=$tmp $SHELL 2>&1) == "OK" ]] &&
|
||||
err_exit 'nointeractive shell reads $HOME/.kshrc file'
|
||||
err_exit 'noninteractive shell reads $HOME/.kshrc file'
|
||||
[[ $(set +x; print env_hit | HOME=$tmp $SHELL -E 2>&1) == "OK" ]] ||
|
||||
err_exit '-E ignores $HOME/.kshrc file'
|
||||
[[ $(print env_hit | HOME=$tmp $SHELL +E 2>&1) == "OK" ]] &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue