[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: About code
From: |
francisco dominguez |
Subject: |
Re: About code |
Date: |
Fri, 13 Jan 2017 16:41:04 +0100 |
The string I was referring to was this:
"Try 'cp --help' for more information"
2017-01-13 15:03 GMT+01:00 Bernhard Voelker <address@hidden>:
> On 01/13/2017 10:56 AM, francisco dominguez wrote:
> > But for example, i try find the "error string" when type "cp" without
> > arguments, but i can not find it.
>
> Not that hard:
>
> $ src/cp 2>&1 | head -n1
> src/cp: missing file operand
>
> $ GIT_PAGER= git grep -n 'missing file operand' -- src/cp.c
> src/cp.c:587: error (0, 0, _("missing file operand"));
>
> http://git.sv.gnu.org/cgit/coreutils.git/tree/src/cp.c?id=cade9233#n587
>
> Have fun,
> Berny
>