🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #1

Re: Sed --in-place creates new file

#1
From: Jérémy Amiot
Date: Tue, 07 Apr 2020 09:20
56 lines
5274 bytes
Hi Bob,
Thanks! Indeed, this bug "#534 Temporary files are not deleted with
inplace parameter"
have been created on 2011-02-03 (https://sourceforge.net/p/gnuwin32/bugs/534/)
and no solution/update have been found so far.
I've checked UnxUtils as well, it's worse (back to 2004 with sed version 3.x).
Nevermind I'll use other tools (WSL on Windows seems to be the better bet).
Have a great day and take care.

On Tue, 7 Apr 2020 at 02:31, Bob Proulx <bob@proulx.com> wrote:
>
> Jérémy Amiot wrote:
> > Using sed for windows version 4..2.1 (url :
> > http://gnuwin32.sourceforge.net/packages/sed.htm)
>
> Very often bugs in Windows versions of tools are due to the port to
> Windows being the root cause.  Looking at that page it looks like the
> last time the Windows port has been touched was 2010 which with it
> being 2020 now seems like that project may have been abandoned.
>
> You might try a different port to windows.  Either Cygwin or Mingw or
> UnxUtils or MSYS or something.
>
> > sed -i "s/to/ti/" test.txt will modify test.txt (ok) but will create a
> > new file "sedGnChQb"
> > sed -i"" "s/to/ti/" test.txt  does the same new file
> >
> > How to avoid sed to create a new file ?
>
> You have reached bug-gnu-utils which is a catch-all list for random
> utilities.  But sed has it's own mailing list at bug-sed AT gnu.org.
> If you want to reach the sed mailing list then that is the place.
>
> I am not running Microsoft so can't test or try but this is not normal
> behavior elsewhere.  I suspect without being able to check that it is
> a problem with the port and does not exist in the upstream sed code.
> I strongly suggest looking at one of the ports that has a version
> better matched to your current system.  Because no current Windows
> system today existed ten years ago when your current port was made.
> Looking at the system requirements on the page you listed it looks
> like all of those systems are now out of support.
>
> Looking at your listed URL I see a reference to this to post bugs.
>
>   http://gnuwin32.sourceforge.net/packages/sed.htm
>
> That looks problematic because the archives links are no longer
> available.  But the GnuWin bug reporting pages look to be current and
> active.
>
>   https://sourceforge.net/p/gnuwin32/bugs/
>
> Good luck!
> Bob
Technical Details
Message-ID: <mailman.304.1586251273.2644.bug-gnu-utils@gnu.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf2.newsdeef.eu!news.usenet.farm!..!..!not-for-mail
References: <CAMb0_rqGcbU74zHa1my0jC9q4mTzEDB=FQ=qYZRtukSL=xy=FA@mail.gmail.com> <20200406182049753957123@bob.proulx.com> <CAMb0_rpGwap3oHxQb1pYorMsKmsOa9bQbUEqfpqFy8L5vtdkiA@mail.gmail.com>

Show Full Headers
Complete Article Headers
Message-ID: <mailman.304.1586251273.2644.bug-gnu-utils@gnu.org>
Subject: Re: Sed --in-place creates new file
Date: Tue, 7 Apr 2020 11:20:56 +0200
From: Jérémy Amiot <jeremy.amiot@gmail.com>
References: <CAMb0_rqGcbU74zHa1my0jC9q4mTzEDB=FQ=qYZRtukSL=xy=FA@mail.gmail.com> <20200406182049753957123@bob.proulx.com> <CAMb0_rpGwap3oHxQb1pYorMsKmsOa9bQbUEqfpqFy8L5vtdkiA@mail.gmail.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf2.newsdeef.eu!news.usenet.farm!..!..!not-for-mail
Newsgroups: gnu.utils.bug
Lines: 57
Approved: bug-gnu-utils@gnu.org
NNTP-Posting-Host: lists.gnu.org
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Trace: usenet.stanford.edu 1586251274 28493 209.51.188.17 (7 Apr 2020 09:21:14 GMT)
X-Complaints-To: action@cs.stanford.edu
To: Jérémy Amiot <jeremy.amiot@gmail.com>,
 bug-gnu-utils@gnu.org
Envelope-to: bug-gnu-utils@gnu.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :content-transfer-encoding;
 bh=CKTDdduzEm0ftW/MmkHV/Qoid3otnCi2dTwmmVNhI5k=;
 b=NYHZhptpT1v4nov3vd2okHmdaK1WujUTLg/ynyvvNCInrni9MLqs64Irjq1uc6lJgo
 xL2VFPxcDl5Vr0fSdEF7SLoyAIintTqpHW5DX2NYWp14wP/1cS3ju44aK/ltmTV5az/y
 2dxwriN+7lvjdSQNy1dzjzpHs1DpySmuV1gHn+B25mpo1F6yBOPv2OzBjAHy6QAw8Cfy
 pbv4nhVjPbDXIGosPuku1dX/hZcsSo/JUhs5CZEOcJQKR2fvzGD92vCBhv3876MmvO4w
 uk6SfsXCiG0XGCto+FXEJAHIQbv4HBzaezFcrwDWFw1wD6dKNrf71MA6Oy7GEvHIlEER
 yzog==
X-Gm-Message-State: AGi0Pubp0DEyT/O1BuJ1ATflFW89ceq+V8HQ2CRa7aj7JsvLd02hA345
 GSd7cVEMfe1hlFQhzCntzfna0i3fC4A/Sxrl2A==
X-Received: by 2002:a5d:4a42:: with SMTP id v2mr1611547wrs.333.1586251266993;
In-Reply-To: <20200406182049753957123@bob.proulx.com>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2a00:1450:4864:20::431
X-BeenThere: bug-gnu-utils@gnu.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: Bug reports for the GNU utilities <bug-gnu-utils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-utils>,
 <mailto:bug-gnu-utils-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-gnu-utils>
List-Post: <mailto:bug-gnu-utils@gnu.org>
List-Help: <mailto:bug-gnu-utils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-utils>,
 <mailto:bug-gnu-utils-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID: <CAMb0_rpGwap3oHxQb1pYorMsKmsOa9bQbUEqfpqFy8L5vtdkiA@mail.gmail.com>
X-Mailman-Original-References: <CAMb0_rqGcbU74zHa1my0jC9q4mTzEDB=FQ=qYZRtukSL=xy=FA@mail.gmail.com>
 <20200406182049753957123@bob.proulx.com>