Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.utils.bug > #2286

Re: Sed --in-place creates new file

Path csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail
From Jérémy Amiot <jeremy.amiot@gmail.com>
Newsgroups gnu.utils.bug
Subject Re: Sed --in-place creates new file
Date Tue, 7 Apr 2020 11:20:56 +0200
Lines 57
Approved bug-gnu-utils@gnu.org
Message-ID <mailman.304.1586251273.2644.bug-gnu-utils@gnu.org> (permalink)
References <CAMb0_rqGcbU74zHa1my0jC9q4mTzEDB=FQ=qYZRtukSL=xy=FA@mail.gmail.com> <20200406182049753957123@bob.proulx.com> <CAMb0_rpGwap3oHxQb1pYorMsKmsOa9bQbUEqfpqFy8L5vtdkiA@mail.gmail.com>
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-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=CKTDdduzEm0ftW/MmkHV/Qoid3otnCi2dTwmmVNhI5k=; b=jmZv3DJrz47qc6QV+PkJpCvyAH2LxxNikVZzW937mgWWUJ9QNG1Rim53hO+qNnU755 cKpmtnGcr1/9sBSWvsqtgnP5Lr6eb8ibZ/7JczqGWnUhATER3A8FSvdicu+f2+0a0QXd F6WSZeU0An4CHTxH39xXdMeyl6/coDQVeEn1FmRLn/Olnjb3A7fmMpcStyFHimjWfUAQ i2O9fGNsi+gMkqm44D2XfEVIZU8Fof8pYoqiMp7U0zKqr1DyKwJF39adGXZrT717L7YQ EqvJjmBMnMsGBAkPJ9VzEgo412d7Sd8Mx1o0EKgbNj93NS8+fLhODCcX3ALbSbkLdKxv 8kcg==
X-Gm-Message-State AGi0Pubp0DEyT/O1BuJ1ATflFW89ceq+V8HQ2CRa7aj7JsvLd02hA345 GSd7cVEMfe1hlFQhzCntzfna0i3fC4A/Sxrl2A==
X-Google-Smtp-Source APiQypJODtP9IIFBOAGiDkFUfM0TA3sEo4mlr7KlS7DMyIo9Mop6gxZokjA8UxdI1/3WI7v6KpGh6tQ/XKt8XrO3RME=
X-Received by 2002:a5d:4a42:: with SMTP id v2mr1611547wrs.333.1586251266993; Tue, 07 Apr 2020 02:21:06 -0700 (PDT)
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>
Xref csiph.com gnu.utils.bug:2286

Show key headers only | View raw


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

Back to gnu.utils.bug | Previous | Find similar


Thread

Re: Sed --in-place creates new file Jérémy Amiot <jeremy.amiot@gmail.com> - 2020-04-07 11:20 +0200

csiph-web