[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
unset return value wrongly documented
From: |
Pozsar Balazs |
Subject: |
unset return value wrongly documented |
Date: |
Sun, 29 Sep 2002 17:58:36 +0200 (MEST) |
From the CHANGES:
This document details the changes between this version, bash-2.05b-beta2,
and the previous version, bash-2.05b-beta1.
[...]
h. The `unset' builtin no longer returns a failure status when asked to
unset a previously-unset variable or function.
But the man page says:
unset [-fv] [name ...]
For each name, remove the corresponding variable or
function. If no options are supplied, or the -v
option is given, each name refers to a shell vari
able. Read-only variables may not be unset. If -f
is specifed, each name refers to a shell function,
and the function definition is removed. Each unset
variable or function is removed from the environ
ment passed to subsequent commands. If any of RAN
DOM, SECONDS, LINENO, HISTCMD, FUNCNAME, GROUPS, or
DIRSTACK are unset, they lose their special proper
ties, even if they are subsequently reset. The
exit status is true unless a name does not exist or
is readonly.
The last sentence should be:
"The exit status is true unless a name is readonly."
Please update it.
have a nice day,
--
pozsy
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- unset return value wrongly documented,
Pozsar Balazs <=