Received: (at submit) by debbugs.gnu.org; 30 Jan 2019 17:38:29 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 30 12:38:29 2019 Received: from localhost ([127.0.0.1]:51892 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gotoi-0001B3-U7 for submit <at> debbugs.gnu.org; Wed, 30 Jan 2019 12:38:29 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52911) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <pengyu.ut@HIDDEN>) id 1gotog-0001Ao-QZ for submit <at> debbugs.gnu.org; Wed, 30 Jan 2019 12:38:27 -0500 Received: from lists.gnu.org ([209.51.188.17]:36281) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <pengyu.ut@HIDDEN>) id 1gotob-0000iv-BR for submit <at> debbugs.gnu.org; Wed, 30 Jan 2019 12:38:21 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39036) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <pengyu.ut@HIDDEN>) id 1gotoa-0005oW-Bu for bug-diffutils@HIDDEN; Wed, 30 Jan 2019 12:38:21 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <pengyu.ut@HIDDEN>) id 1gotoV-0000hN-He for bug-diffutils@HIDDEN; Wed, 30 Jan 2019 12:38:19 -0500 Received: from mail-io1-xd2c.google.com ([2607:f8b0:4864:20::d2c]:44567) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <pengyu.ut@HIDDEN>) id 1gotoS-0000gI-38 for bug-diffutils@HIDDEN; Wed, 30 Jan 2019 12:38:13 -0500 Received: by mail-io1-xd2c.google.com with SMTP id r200so246471iod.11 for <bug-diffutils@HIDDEN>; Wed, 30 Jan 2019 09:38:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=dxHr/V5mDFN+BXRrgnvmisVZxtUscAbgHqhRfZurXL8=; b=Ri3mMU2z9y+b+cEShh1Qwh/+kk6MtOko/w3CvKwnMLWW1nmniLjyqQkhrWhDEghgwD Q0Wdf8BQszlnfGLl8ePRFw+tavo7XdlCuS0fo5zO1bsiZA3/t2P/aCp1FDQwJL1SppA3 o2ky7UZlFPd+3qgZZquTxYczRljaZXvHut8kez2JUadkbuLh+JSZFEWcEPXwGLKZa3kt J2JgDzWuw/vyNBN7AKhd0CISU9raHVVzxCfQ+BYif0vvqFqUv0DmOeRwM0R6cnd194Bz fot2WNEBJbTPotqBgZGwDFIwgxL5x8DQzHhw4Qkp31pn//FXzAcIrUcdPr9grgbDnUAT JdUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=dxHr/V5mDFN+BXRrgnvmisVZxtUscAbgHqhRfZurXL8=; b=Gd115kHSFQXWwdjVYV5JzYHBJVghOfs77OaCYILYOCijWPZ+0ESemslDio3O4J7vaR qeuiA+EHgHizPtG7ZU0AN6dSZU2sp+9PM+ak74UbMGDFaaf6jM8IAWsa8AuocVyo/C3U Wpm7anU641A0ZkPLPpeHqCP5UGyTq35OUySf+RrIXd1tavA48OCJd3vCGVxka1W0V3xC ppQU0pY3z4wFECX+fQPyKgv6Z2VY3PbVaN4/42/P5BkbMe/fzS1O0Rq3BLDlSJtj8Ktj AJk/AxX2EquM1a5epYS4pQdYnpRS91hcgoA+oR6AFnNXKI4GoyTSchknS+vNzhfKI1wu NqKg== X-Gm-Message-State: AHQUAua8goHHmxT3TY6+I2YjFKRdzV00htQuyTFdFmiN1+EO8i9FVcnp mrDOPw42k60unL0O+hEu2BybpNDlDVf2auPUpc6gX7RG X-Google-Smtp-Source: ALg8bN6vi4NdHXQ/ZoEnXMv9cBwZ7x7vEqyATEMQYRtcazYnCqYJREh+crbqyoFWu+jO5n3qTVpp2q6+bcJpGDc2uQ8= X-Received: by 2002:a6b:6a0a:: with SMTP id x10mr17935237iog.87.1548869888689; Wed, 30 Jan 2019 09:38:08 -0800 (PST) MIME-Version: 1.0 From: Peng Yu <pengyu.ut@HIDDEN> Date: Wed, 30 Jan 2019 11:37:57 -0600 Message-ID: <CABrM6wnThq+R8k9ZgJ07QbUHsC7_z=yF5WzzTUO=uxLSSavZJg@HIDDEN> Subject: --*-line-format results are different from the default. To: bug-diffutils@HIDDEN Content-Type: text/plain; charset="UTF-8" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::d2c X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.0 (/) Hi, I'd expect only the new lines from the script2.txt should be printed in the 2nd command. But somehow what it actually prints is not. The test files are on the following URL. Could please let me know what is wrong here? Thanks. https://filebin.net/4hmuixxixarhfl1b $ diff script[12].txt |head 186512a186513,186514 > internal_malloc bb212 329 B> > internal_malloc bb212 333 B< 188481,188482d188482 < make_buffered_stream bb38 60 B> < make_buffered_stream bb38 65 B< 189130a189131,189534 > set_line_mbstate bb37 62 B> > set_line_mbstate bb37 66 B< > set_line_mbstate bb39 68 B> $ diff --old-line-format='' --new-line-format='>%L' --unchanged-line-format='' script[12].txt| head >internal_malloc bb212 329 B> >internal_malloc bb212 333 B< >buffered_getchar bb34 47 B> >buffered_getchar bb34 55 B< >buffered_getchar bb50 65 B> >buffered_getchar bb50 85 B< >buffered_getchar bb70 87 B> >buffered_getchar bb70 89 B< >buffered_getchar bb72 91 B> >buffered_getchar bb72 92 B< -- Regards, Peng
Peng Yu <pengyu.ut@HIDDEN>
:bug-diffutils@HIDDEN
.
Full text available.bug-diffutils@HIDDEN
:bug#34259
; Package diffutils
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.