Angelo Borsotti writes:
> when the section or key is absent
When the key is malformed you get an error, otherwise not.
Andreas.
--
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
--
To
Hi Andreas,
>
> Is grep not finding a match an error? Is cmp finding a difference an
> error? It all depends on the context.
>
Manpage of grep, exit staus:
"Normally, the exit status is 0 if selected lines are found and 1
otherwise. But the exit status is 2 if an error occurred, ..."
cmp u
Angelo Borsotti writes:
> Besides that, it is common practice in *nix OSs to
> consider a return != 0 as an error.
Is grep not finding a match an error? Is cmp finding a difference an
error? It all depends on the context.
> How can otherwise the user tell a corrupted configuration file from a
Hi Ben
> This still wouldn't be an error condition though, especially in terms
> of how "git config" should treat it.
The man page says:
"This command will fail with non-zero status upon error."
Of course, one might claim that this does not mean the truth of the
reverse condition, i.e. that
On Sat, Oct 27, 2012 at 9:32 AM, Angelo Borsotti
wrote:
Hi Angelo,
> I wrote "value", but I meant "name". The first example I made contains
> a name with a nonexistent section, the second a name with a
> nonexistent key.
This still wouldn't be an error condition though, especially in terms
of h
Angelo Borsotti writes:
> I wrote "value", but I meant "name". The first example I made contains
> a name with a nonexistent section, the second a name with a
> nonexistent key.
And a nonexistent key is a valid key, so not an error.
Andreas.
--
Andreas Schwab, sch...@linux-m68k.org
GPG Key fi
Angelo Borsotti writes:
> git config --get issues an error message when the specified value
> contains a section that does not exist, but does not issue any message
> when the value contains a key that does not exist while in both cases
> returning a status 1. E.g.
>
> $ git config --get xxx
> er
7 matches
Mail list logo