From unknown Sun Jun 15 08:36:33 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#36489 <36489@debbugs.gnu.org> To: bug#36489 <36489@debbugs.gnu.org> Subject: Status: possible bug by sed? Reply-To: bug#36489 <36489@debbugs.gnu.org> Date: Sun, 15 Jun 2025 15:36:33 +0000 retitle 36489 possible bug by sed? reassign 36489 sed submitter 36489 Steven Abner severity 36489 normal tag 36489 moreinfo notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 03 10:45:46 2019 Received: (at submit) by debbugs.gnu.org; 3 Jul 2019 14:45:46 +0000 Received: from localhost ([127.0.0.1]:49919 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1higW2-0001ET-8h for submit@debbugs.gnu.org; Wed, 03 Jul 2019 10:45:46 -0400 Received: from lists.gnu.org ([209.51.188.17]:53354) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1higMJ-000109-Gf for submit@debbugs.gnu.org; Wed, 03 Jul 2019 10:35:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57283) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1higMI-0007cV-Fp for bug-sed@gnu.org; Wed, 03 Jul 2019 10:35:43 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1higMH-0000wQ-0U for bug-sed@gnu.org; Wed, 03 Jul 2019 10:35:42 -0400 Received: from sonic316-23.consmr.mail.ne1.yahoo.com ([66.163.187.149]:38542) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1higMG-0000up-MD for bug-sed@gnu.org; Wed, 03 Jul 2019 10:35:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=att.net; s=s1024; t=1562164536; bh=Wb+YYEv9pANSxvUetTXR8tE30F8mN7OqK7H7HzlvbQw=; h=Date:From:Subject:To:From:Subject; b=B3JdR4Ma1SWf3v33RSfodWf5w+bsn6ZtXmn2h/qe67LdANmKq0y6fzgomlNAxdssmdyWgTnfsPQC/Cmc0pD3JrTK4QSgNBSez5bfcwxFnK7LAZb5R+USa5AxrlA4ErSr5DiFgIq6RmwbivX41KhiB/+Ve32HdKFuQL7DsU9UeHY= X-YMail-OSG: FPRWApAVM1nebei0lPror.pzRl7MLXrknVN.t_FZK4gstHG_9KklBJztsEKIrJz BDTzkxSQ89xU6_rISflUIaUcBtl61ym0zJ1GqmN2C6v7wM_xeVVPTW9JyMvy1oJy69m6P4G6Fg2j 9sjOhPggzrRM6.rxNJD.JL8YVCEtdRs_Wacksxu4hzGMhQ2KqXWW1ZoTePa3vGeWELofUcMGTtgz aYV9wZiZfVsgv9QT8thpmkN1dBXW0QFKyL8BSfA_MpALocvE8BZ15N83dvJXuYQ3zAN2V4IYp8K. DeT9QNZaLru18kK7F8LJxVdbIASKMIpfEVWCNF3OpxL_XMWfyISffhckhmZyJEXNoAQPA7rjELQA lhUEQ4gOShj5K5BdOKOKsFjZvUDNk7HwrGi8D4.QcVmL1XjHSkDtOGZ_LUov.jyxbXN.QAY88koq Xx5R7VPQkfMpDs0mBEsiyz7rdxVXXC6ZING85AgP5rTydGx.eXG3nixQhI7UYADCkVWCe03WKWQb YMyKnoUzd7J1PynQKvRIlR0TDyF1u1r4XBmwkWATRLurVb.XTLq40N8HZcEeoxEIvEJO911yuTZl 64Vh0NZRarOCxIKQHAuYhhHTcG3N39oTERdStzEq5WzAaxDw7m4E.TNLajkqY5jSV2xFmOaWfD_x qKMTfX_ItdqrvI0nXhTatUxCP9CG9uo8SNy8TxUdcQZFfQAIn3juPF2hY7reNJQmG2bzR8bWoCAP 8fABlbpCFx6v3iec0ZrsVJqmEr6XnztRjr9gmNOL_OTnYR6Dwe6gaSv5noZG_hDxfoZpVnliDuEY _KOJCnEFwgfEGntcFwflf1cI18Oy2s5faZlzQaiTNiRv8DwflEr8JWj8EEaWb4rqBAzDBvV4J0uK 7NpgiowArp4nv.VyV7_2E.Fq82CNBLhouW.qypVc2pFSJab6O4rggXX3nS0jlJD01NaJkjPD35KH P2AXfP63Hs8Cd4GKJl9RVqT4Rf9YaW1Rt4tqG2nJDlrfPntVvrVJKrJojg7kJJcmenCgMRpameHP Ydxar22JCd30hWB9u.sT8ciXKCDEcxEs1pIXN4T5NW5N8wZUZ8YJgayb3Td6XP7ESuobFDm1tHjT NlU6aE.tBommt56Tk.ibXJD_xyLEPQp4_QRLnpJc9PZBdQBCz5MQQY8H6EZip07bGtA2D_fYBHxS iHfEX66BZFMK.Se.YG0fvPY8- Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.ne1.yahoo.com with HTTP; Wed, 3 Jul 2019 14:35:36 +0000 Received: by smtp423.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 0954a9366faf8671b1d7a09cccea5dee; Wed, 03 Jul 2019 14:35:34 +0000 (UTC) Date: Wed, 03 Jul 2019 10:35:33 -0400 From: Steven Abner Subject: possible bug by sed? To: bug-sed@gnu.org Message-Id: <1562164533.14519.0@smtp.mail.att.net> X-Mailer: pantheon-mail/1.0.8 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-2svqNnpTXo46sOnNqIXp" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 66.163.187.149 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 03 Jul 2019 10:45:45 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-2svqNnpTXo46sOnNqIXp Content-Type: text/plain; charset=us-ascii; format=flowed Hi, Using: grep -rlI ~/Development/PheonixOS -e 'as_sys_types.h' | xargs sed -i 's@as_sys_types.h@as_types.h@g' on ElementaryOS did its job except it truncated a few files' last line. In otherwords, file ends up one line short, and had no replacement on that line. Only found problem because of had identical copies on my mac, and did same thing, except BSD variant: grep -rlI ~/Development/Pheonix -e 'as_sys_types.h' | xargs sed -i "" 's@as_sys_types.h@as_types.h@g' Then I verify changes by using diff command. Several files on linux lost last line. As stated in subject, 'possible', because it could belong to 'xargs'? Thx and sorry to contact Steve --=-2svqNnpTXo46sOnNqIXp Content-Type: text/html; charset=us-ascii Hi,
Using:
grep -rlI ~/Development/PheonixOS -e 'as_sys_types.h' | xargs sed -i 's@as_sys_types.h@as_types.h@g'
on ElementaryOS did its job except it truncated a few files' last line. In otherwords, file ends up one line
short, and had no replacement on that line.
  Only found problem because of had identical copies on my mac, and did same thing, except BSD variant:
grep -rlI ~/Development/Pheonix -e 'as_sys_types.h' | xargs sed -i "" 's@as_sys_types.h@as_types.h@g'
 Then I verify changes by using diff command. Several files on linux lost last line.
 As stated in subject, 'possible', because it could belong to 'xargs'?
Thx and sorry to contact
 Steve


--=-2svqNnpTXo46sOnNqIXp-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 04 04:20:43 2019 Received: (at 36489) by debbugs.gnu.org; 4 Jul 2019 08:20:43 +0000 Received: from localhost ([127.0.0.1]:50327 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hiwyx-0006oP-DC for submit@debbugs.gnu.org; Thu, 04 Jul 2019 04:20:43 -0400 Received: from mail-pg1-f181.google.com ([209.85.215.181]:43978) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hiwyv-0006o7-W9; Thu, 04 Jul 2019 04:20:42 -0400 Received: by mail-pg1-f181.google.com with SMTP id f25so2550904pgv.10; Thu, 04 Jul 2019 01:20:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=5nPIAgArrBheqAfkw9X156X4PpJv8vigQtFWcsTVU6E=; b=sQyYy1XGCAgV4MZk6wmROjMnrjpCEIyJG1l/nSm8ubvpHhZCD4Lt04ma9Iu6LCghRy 7XwNq5HfGMT0eOb3muXcrwA7hgT9lB6/zejXpGKs//YrRFnyxb2vqKX6XOnTl0V8SiFP hbloHFY1NcvYnFMWjWmSBFlbfb3DaDwD2eOd4NHGdjbF449HD3OrPWWTwKXsnmHkajkH Tdinl1xQ/muM60zGDgLozMIK7J4t+NUFEcxF/ociW2GL6w/LnaMr8w+IouTpmwP8aKF8 88plspLvjVjae29kLBUZkNiykPUbH2QRDx6MbLwrMvPg6wvxFKZ89SLhg/oU79ENuJVQ JL6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=5nPIAgArrBheqAfkw9X156X4PpJv8vigQtFWcsTVU6E=; b=tt/ZE8vf7qwF4Pkq22OhiIrqwS7c5tVZdJrI+60dG9LLdvPyQ/sqXHmSxb7UV0NYzk /AFvP3WNHHwUpeZ6msyndk8gSykm66vgK+xH4MxdlAGodLWWqTnb2gTWePNd+J/J/zdY 6I4c9Jp3RUbkwEIp9KesEKfDGRyL1ZRLtTf7ZiCBNhOQXiTv5ybw0RWvGI6EJRiGb3Vm DdXsyb97Y7QtSL7lGfP2dQQHPWG4MRwe1ugNDbIteIkiKCtJUMZcUA6ITUrzUnlwR4zf 6z4sSUBNR/ZCP19hmn8sFeA1Amd+m7O+7Sua0Rla48YY784C07H4taWf9LRpRdVq0gvf 30Mg== X-Gm-Message-State: APjAAAWxz7RU+X/PhZwv8Jx6D+qdJRzCeWOwhtwqQoGYntkLq1miAjn9 CCvx+hZBOKziEJV87xQCz6o= X-Google-Smtp-Source: APXvYqzZWd+ZW5xyRUbVS6CNUTYGOPo7sCA19Bczfpzcfqsh/9OMEQZt6s6H3u8ibMFAwd94ogRUjQ== X-Received: by 2002:a17:90a:c481:: with SMTP id j1mr18138187pjt.96.1562228435670; Thu, 04 Jul 2019 01:20:35 -0700 (PDT) Received: from tomato (moose.housegordon.com. [184.68.105.38]) by smtp.gmail.com with ESMTPSA id k14sm5750188pfg.6.2019.07.04.01.20.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Jul 2019 01:20:34 -0700 (PDT) Received: by tomato (Postfix, from userid 1000) id 9B42C680AFC; Thu, 4 Jul 2019 02:20:33 -0600 (MDT) Date: Thu, 4 Jul 2019 02:20:33 -0600 From: Assaf Gordon To: Steven Abner Subject: Re: bug#36489: possible bug by sed? Message-ID: <20190704082033.GH29034@tomato.moose.housegordon.com> References: <1562164533.14519.0@smtp.mail.att.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1562164533.14519.0@smtp.mail.att.net> User-Agent: Mutt/1.11.4 (2019-03-13) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36489 Cc: 36489@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tag 36489 moreinfo stop Hello, On Wed, Jul 03, 2019 at 10:35:33AM -0400, Steven Abner wrote: > Hi, > Using: > grep -rlI ~/Development/PheonixOS -e 'as_sys_types.h' | xargs sed -i > 's@as_sys_types.h@as_types.h@g' > on ElementaryOS did its job except it truncated a few files' last line. In > otherwords, file ends up one line > short, and had no replacement on that line. > Only found problem because of had identical copies on my mac, and did same > thing, except BSD variant: > grep -rlI ~/Development/Pheonix -e 'as_sys_types.h' | xargs sed -i "" > 's@as_sys_types.h@as_types.h@g' > Then I verify changes by using diff command. Several files on linux lost > last line. > As stated in subject, 'possible', because it could belong to 'xargs'? We'll need a bit more information to be able to diagnose this issue. First, which version of 'sed' are you using (try "sed --version"). If this isn't a recent version (4.7), can you also try with version 4.7 ? Second, Is this reproducible? Can you narrow it down to a single file using only "sed" (without grep/xargs) ? If so, can you share the file? (To ease testing, you can add a backup extension to the "-i" parameter, similar to bsd: "sed -i.bak [...]" - the original files will be saved). Third, A cursory attempt to run a similar command on my computer did not show this issue, I tried with the following commands: for i in a b c d e ; \ do ( seq 10 ; printf "AAA as_sys_types.h\n" ) > $i ; done grep -rlI ./ -e 'as_sys_types.h' \ | xargs sed -i 's@as_sys_types.h@as_types.h@g' regards, - assaf From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 09 21:46:36 2019 Received: (at 36489) by debbugs.gnu.org; 10 Jul 2019 01:46:36 +0000 Received: from localhost ([127.0.0.1]:34619 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hl1gn-0003u7-N0 for submit@debbugs.gnu.org; Tue, 09 Jul 2019 21:46:36 -0400 Received: from mail-pl1-f179.google.com ([209.85.214.179]:32950) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hl1gl-0003tq-E8; Tue, 09 Jul 2019 21:46:32 -0400 Received: by mail-pl1-f179.google.com with SMTP id c14so347748plo.0; Tue, 09 Jul 2019 18:46:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=muGmL3ql78r/Z9aBwMt7ejjJM3gO9h4cnCAPcQjd4Ig=; b=CNMvqenZsTRI8H+N0pPm01TzXzp8x8XsUMJeyx040YveJCHHf4cFF60omkytNvnqdF NtlMi0YluvOlE9+W83ZFRzuHhg8Meg4QOollbYtdf/FD6CXdrDhJHiigK0/wdEHM1B1h QROj7ehxWHIAhy6IlPKHAydyv6pggePrDxvkTqO05rau1Kc+F6fF+0X2kfEte2XekNb8 SoD47zKdw7C4L5eNDetlU8fMEsh3yEt2siZbxdZwdTUR6gan01586Z5B45cwWlGk48xt tBTOfgyvQ31IUXwDpdMj6e1E+lG7wr9madmozt8UIXW5B+CoooIj9vC0SwBzyNgcxqbs bvQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=muGmL3ql78r/Z9aBwMt7ejjJM3gO9h4cnCAPcQjd4Ig=; b=ZBRmoY1l6xDLSOcCsNgBTqxfuzaAgyF2sN2GXm3L5BG+0xnXbifV6j760VfbQmzijF v6W+NJLZ1mODYdeCebHDKEFCqi4qWGmkBTlrHDDm+KDjemqbscuv+6Wpoty+HEWXZXui kovKnECwf48ZVknXRnLMw34Im8CAHrLZs/RiET0LLXgXk333juUDflUrHa4oWhF8B2OE XooQMae9ulDKKmSQ8p9vjH+/y2ImLA/GID6wbYzXbC7lVhUwYS3GxFvKKO2uBP5B+fx3 Vk/60o7J+HWLLDAYiWe0w72ZASCPm/IQApkILD123AHZx5RqNmeYa00Bjm39ZXWoe4id +3vA== X-Gm-Message-State: APjAAAUkR2PUuIqoy/Plj1moLZeF+vY7w6A8zrMA2uHkWlQHMSjWMcPz udp6H79yQC8gWh7ATZ+Y50o= X-Google-Smtp-Source: APXvYqxtMXG7E6UaxjdNoEaN/KqmrYc4MV07YSv5MoOXIS1DWvN9vivuyll1K2IPHn26MHQaKNoZaQ== X-Received: by 2002:a17:902:b104:: with SMTP id q4mr27983429plr.153.1562723185473; Tue, 09 Jul 2019 18:46:25 -0700 (PDT) Received: from tomato (moose.housegordon.com. [184.68.105.38]) by smtp.gmail.com with ESMTPSA id l31sm318532pgm.63.2019.07.09.18.46.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 09 Jul 2019 18:46:23 -0700 (PDT) Received: by tomato (Postfix, from userid 1000) id BD9026811D1; Tue, 9 Jul 2019 19:46:22 -0600 (MDT) Date: Tue, 9 Jul 2019 19:46:22 -0600 From: Assaf Gordon To: Steven Abner Subject: Re: bug#36489: possible bug by sed? Message-ID: <20190710014622.GJ29034@tomato.moose.housegordon.com> References: <1562164533.14519.0@smtp.mail.att.net> <20190704082033.GH29034@tomato.moose.housegordon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190704082033.GH29034@tomato.moose.housegordon.com> User-Agent: Mutt/1.11.4 (2019-03-13) X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tag 36489 notabug close 36489 stop On Thu, Jul 04, 2019 at 02:20:33AM -0600, Assaf Gordon wrote: > On Wed, Jul 03, 2019 at 10:35:33AM -0400, Steven Abner wrote: > > grep -rlI ~/Development/PheonixOS -e 'as_sys_types.h' | xargs sed -i > [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.214.179 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (assafgordon[at]gmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.3 PDS_NO_HELO_DNS High profile HELO but no A record X-Debbugs-Envelope-To: 36489 Cc: 36489@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) tag 36489 notabug close 36489 stop On Thu, Jul 04, 2019 at 02:20:33AM -0600, Assaf Gordon wrote: > On Wed, Jul 03, 2019 at 10:35:33AM -0400, Steven Abner wrote: > > grep -rlI ~/Development/PheonixOS -e 'as_sys_types.h' | xargs sed -i > > 's@as_sys_types.h@as_types.h@g' > > on ElementaryOS did its job except it truncated a few files' last line. In > > otherwords, file ends up one line [...] > Is this reproducible? > Can you narrow it down to a single file using only "sed" (without > grep/xargs) ? Confirmed off-list that this is not reproducible, and likely due to other issues, not a sed bug. As such, I'm closing this item. Discussion can continue by replying to this thread. -assaf From unknown Sun Jun 15 08:36:33 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 07 Aug 2019 11:24:11 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator