Assaf Gordon <assafgordon@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Assaf Gordon <assafgordon@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 33125) by debbugs.gnu.org; 30 Oct 2018 04:08:10 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 30 00:08:10 2018 Received: from localhost ([127.0.0.1]:52949 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gHLK6-0004Aw-Ma for submit <at> debbugs.gnu.org; Tue, 30 Oct 2018 00:08:10 -0400 Received: from mail-pg1-f181.google.com ([209.85.215.181]:34503) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <assafgordon@HIDDEN>) id 1gHLK5-0004Aj-9p for 33125 <at> debbugs.gnu.org; Tue, 30 Oct 2018 00:08:09 -0400 Received: by mail-pg1-f181.google.com with SMTP id k1-v6so3534423pgq.1 for <33125 <at> debbugs.gnu.org>; Mon, 29 Oct 2018 21:08:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=APAE7fjT3ozJsSRQ+xk4ujHt+UOCK6z/uG2Rzf+Anbs=; b=sH6gAsw7FpFwGIl+dIyeBEAaamgImAU5ae7onliJ6/0400JoM/fOp+b8NoTAZD4VQS 8q8jEZglpUinIk1+NKgyTnYru+px70oHfAxuQhrtGJGtVY/jZH9pFEOaPr8mOevF94EX 59gCRuRH6nepp4T6l5OhZOeftghZShKnzQ0QZW0bg+2IRbgd69NVwpY1VgoRdIH4hb7Y gWytrpw1UDPsSSzsOQb1+ipmmxwJAbIpBrVovW5gr1r9MFwmkxB2lEquLL8wLemTxWa1 2s08AR6VWeDxcfpy40d3Qb6owDNNNaQkyP9s8vG7VpJQryHPad6pdZ+Q7NF27cgfYlnP 5THw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=APAE7fjT3ozJsSRQ+xk4ujHt+UOCK6z/uG2Rzf+Anbs=; b=VJetzwBpv1lZ8HVTcWIICxxdL3R2De6e15vAz1NG2DD/1MZebMetZxt+2WarzhmAq8 nDqHjLbtyZ4RS9m6zworYrXcg6l3tYSBlH62wUzIEc9Cyx8iWVU/sxwZiPpYW9OPMDau 7ah3PzeFUoXPjBzEKvKmhOu+OTFrWZ7botfFFSqLIlUkNjmWiojYSsEyw/GSbbmVsCUd 3tiyHSycLIWl21r5Fm3rJYXvjENPqB0ZrSlBoWezZiDPznAC6Y93dOcxAovsiGlnVnaw 0z/7v89kRWqRiATcV67KGLgjyyBxmOthkIh5WI2IVRI3/GNGS2mJFw6/pHAsCrot1LFb UlUA== X-Gm-Message-State: AGRZ1gJThH4Jb5Fr3D6oSAqIz3Ef3chJS0hiYLvyGjip0RmGK2HYbr52 N2AcPPyzZa6YLX6LpZxj0LdcsjUrUsE= X-Google-Smtp-Source: AJdET5fwRU6hGPTtV9Gh9XIflufxGTpKXOIBuyUxCUXZSWi+Md3LqWx4fP5IRCc5t94r6RtBGY1cag== X-Received: by 2002:a62:d2c7:: with SMTP id c190-v6mr1288423pfg.26.1540872483511; Mon, 29 Oct 2018 21:08:03 -0700 (PDT) Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38]) by smtp.googlemail.com with ESMTPSA id g14-v6sm22873132pfb.130.2018.10.29.21.08.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 21:08:02 -0700 (PDT) Subject: Re: bug#33125: /bin/del To: Paul Eggert <eggert@HIDDEN>, francky.leyn@HIDDEN, 33125 <33125 <at> debbugs.gnu.org> References: <2134585113.328113294.1540287973106.JavaMail.zimbra@HIDDEN> <1344290531.373066395.1540650165460.JavaMail.zimbra@HIDDEN> <16ee9778-ab4f-0f45-ed0e-735881bf3c31@HIDDEN> From: Assaf Gordon <assafgordon@HIDDEN> Message-ID: <fd802743-25c4-46af-0a97-a770873da912@HIDDEN> Date: Mon, 29 Oct 2018 22:08:00 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <16ee9778-ab4f-0f45-ed0e-735881bf3c31@HIDDEN> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 33125 Cc: Francky Leyn <Francky@HIDDEN> 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: -1.0 (-) severity 33125 wishlist retitle 33125 rm: add --backup option, similar to cp/mv/ln stop On 2018-10-28 3:12 p.m., Paul Eggert wrote: > It'd be nice to add a --backup flag to 'rm', which would behave like > --backup does with cp, mv, and ln. This would have the effect of the > 'del' command you're suggesting. The topic of the thread changed, I'm marking this as a "wishlist" item. -assaf
bug-coreutils@HIDDEN
:bug#33125
; Package coreutils
.
Full text available.Received: (at 33125) by debbugs.gnu.org; 28 Oct 2018 21:12:18 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 28 17:12:18 2018 Received: from localhost ([127.0.0.1]:49397 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gGsM6-00079l-A7 for submit <at> debbugs.gnu.org; Sun, 28 Oct 2018 17:12:18 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:49700) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eggert@HIDDEN>) id 1gGsM4-00079Z-U8 for 33125 <at> debbugs.gnu.org; Sun, 28 Oct 2018 17:12:17 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id A8790160066; Sun, 28 Oct 2018 14:12:10 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id wl9s5xGRzBTI; Sun, 28 Oct 2018 14:12:10 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 06C1D16005B; Sun, 28 Oct 2018 14:12:10 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id rwwN8DGRE8yI; Sun, 28 Oct 2018 14:12:09 -0700 (PDT) Received: from [192.168.1.9] (cpe-23-242-74-103.socal.res.rr.com [23.242.74.103]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id D2000160066; Sun, 28 Oct 2018 14:12:09 -0700 (PDT) Subject: Re: bug#33125: /bin/del To: francky.leyn@HIDDEN, 33125 <33125 <at> debbugs.gnu.org> References: <2134585113.328113294.1540287973106.JavaMail.zimbra@HIDDEN> <1344290531.373066395.1540650165460.JavaMail.zimbra@HIDDEN> From: Paul Eggert <eggert@HIDDEN> Organization: UCLA Computer Science Department Message-ID: <16ee9778-ab4f-0f45-ed0e-735881bf3c31@HIDDEN> Date: Sun, 28 Oct 2018 14:12:09 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <1344290531.373066395.1540650165460.JavaMail.zimbra@HIDDEN> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 33125 Cc: Francky Leyn <Francky@HIDDEN> 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: -3.3 (---) It'd be nice to add a --backup flag to 'rm', which would behave like --backup does with cp, mv, and ln. This would have the effect of the 'del' command you're suggesting.
bug-coreutils@HIDDEN
:bug#33125
; Package coreutils
.
Full text available.Received: (at 33125) by debbugs.gnu.org; 27 Oct 2018 14:22:49 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 27 10:22:49 2018 Received: from localhost ([127.0.0.1]:45556 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gGPUH-00028l-Jy for submit <at> debbugs.gnu.org; Sat, 27 Oct 2018 10:22:49 -0400 Received: from laurent.telenet-ops.be ([195.130.137.89]:58610) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <francky.leyn@HIDDEN>) id 1gGPUF-00028a-9k for 33125 <at> debbugs.gnu.org; Sat, 27 Oct 2018 10:22:48 -0400 Received: from zcsnocm127.telenet-ops.be ([IPv6:2a02:1800:120:86::f00:7f]) by laurent.telenet-ops.be with bizsmtp id seNl1y00G2v8kzS01eNl3Z; Sat, 27 Oct 2018 16:22:45 +0200 Date: Sat, 27 Oct 2018 16:22:45 +0200 (CEST) From: francky.leyn@HIDDEN To: 33125 <33125 <at> debbugs.gnu.org> Message-ID: <1344290531.373066395.1540650165460.JavaMail.zimbra@HIDDEN> Subject: /bin/del MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_be27ff71-1453-40f3-ba22-0da28a938732" X-Originating-IP: [2a02:1811:c410:2d00:709d:a310:44fb:c7bb] Thread-Index: uLk0pqweiAiDNUZR7Fu1w6kpUbRjqg== Thread-Topic: /bin/del X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33125 Cc: Francky Leyn <Francky@HIDDEN> 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: -1.7 (-) --=_be27ff71-1453-40f3-ba22-0da28a938732 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Hello, in this message a do a plea to introduce a /bin/del command into the coreutils. Deleting is something totally different than removing. It is a mv action and there must be a restore action. With the coreutils, removing is the default. This is not wrong, but it can be very anyoing, as I have experiences with the mv command. The current coreutils work like an incinerator. There is no way back. There exist file managers with a recycle bin to solve the problem. But I think they all work differently. Switching from file manager therefore is not obvious. If there would be a /bin/del command, these file managers all could do a system call to he SAME routine, with the same functionality. How must this del command work? Look, on the net one finds a plethora of tools to do the job in a command line way. I ask you, coreutils developers to develop a /bin/del, that combines the best of these tools. Regards, Francky --=_be27ff71-1453-40f3-ba22-0da28a938732 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html><body><div style=3D"font-family: Courier; font-size: 10pt; color: #00= 0000"><div><span style=3D"font-family: arial, helvetica, sans-serif; font-s= ize: 12pt;" data-mce-style=3D"font-family: arial, helvetica, sans-serif; fo= nt-size: 12pt;">Hello,</span></div><div><br data-mce-bogus=3D"1"></div><div= ><span style=3D"font-family: arial, helvetica, sans-serif; font-size: 12pt;= " data-mce-style=3D"font-family: arial, helvetica, sans-serif; font-size: 1= 2pt;">in this message a do a plea to introduce a /bin/del command into the = coreutils.</span></div><div><br data-mce-bogus=3D"1"></div><div><span style= =3D"font-family: arial, helvetica, sans-serif; font-size: 12pt;" data-mce-s= tyle=3D"font-family: arial, helvetica, sans-serif; font-size: 12pt;">Deleti= ng is something totally different than removing. It is a mv action and ther= e must be a restore action.</span></div><div><br data-mce-bogus=3D"1"></div= ><div><span style=3D"font-family: arial, helvetica, sans-serif; font-size: = 12pt;" data-mce-style=3D"font-family: arial, helvetica, sans-serif; font-si= ze: 12pt;">With the coreutils, removing is the default. This is not wrong, = but it can be very anyoing, as I have experiences with the mv command. The = current coreutils work like an <!--StartFragment--><span style=3D"col= or: rgb(33, 33, 33); font-style: normal; font-variant-ligatures: normal; fo= nt-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans:= 2; text-align: left; text-indent: 0px; text-transform: none; white-space: = pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; bac= kground-color: rgb(255, 255, 255); text-decoration-style: initial; text-dec= oration-color: initial; float: none; display: inline !important;" data-mce-= style=3D"color: #212121; font-style: normal; font-variant-ligatures: normal= ; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orph= ans: 2; text-align: left; text-indent: 0px; text-transform: none; white-spa= ce: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;= background-color: #ffffff; text-decoration-style: initial; text-decoration= -color: initial; float: none; display: inline !important;">incinerator. The= re is no way back.</span></span></div><div><span style=3D"color: rgb(33, 33= , 33); font-family: arial, helvetica, sans-serif; font-size: 12pt; font-sty= le: normal; font-variant-ligatures: normal; font-variant-caps: normal; font= -weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-in= dent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spa= cing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, = 255); text-decoration-style: initial; text-decoration-color: initial; float= : none; display: inline !important;" data-mce-style=3D"color: #212121; font= -family: arial, helvetica, sans-serif; font-size: 12pt; font-style: normal;= font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 40= 0; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; = text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; = -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-= style: initial; text-decoration-color: initial; float: none; display: inlin= e !important;"><br data-mce-bogus=3D"1"></span></div><div><font color=3D"#2= 12121" face=3D"arial, helvetica, sans-serif"><span style=3D"font-size: 16px= ; white-space: pre-wrap;">There exist file managers with a recycle bin to s= olve the problem. But I think they all work differently. Switching from fil= e manager therefore is not obvious. If there would be a /bin/del command, t= hese file managers all could do a system call to he SAME routine, with the = same functionality. </span></font></div><div><font color=3D"#212121" face= =3D"arial, helvetica, sans-serif"><span style=3D"font-size: 16px; white-spa= ce: pre-wrap;"><br data-mce-bogus=3D"1"></span></font></div><div><font colo= r=3D"#212121" face=3D"arial, helvetica, sans-serif"><span style=3D"font-siz= e: 16px; white-space: pre-wrap;">How must this del command work? Look, on t= he net one finds a plethora of tools to do the job in a command line way.</= span></font></div><div><font color=3D"#212121" face=3D"arial, helvetica, sa= ns-serif"><span style=3D"font-size: 16px; white-space: pre-wrap;"><br data-= mce-bogus=3D"1"></span></font></div><div><font color=3D"#212121" face=3D"ar= ial, helvetica, sans-serif"><span style=3D"font-size: 16px; white-space: pr= e-wrap;">I ask you, coreutils developers to develop a /bin/del, that combin= es the best of these tools.</span></font></div><div><font color=3D"#212121"= face=3D"arial, helvetica, sans-serif"><span style=3D"font-size: 16px; whit= e-space: pre-wrap;"><br data-mce-bogus=3D"1"></span></font></div><div><font= color=3D"#212121" face=3D"arial, helvetica, sans-serif"><span style=3D"fon= t-size: 16px; white-space: pre-wrap;">Regards,</span></font></div><div><fon= t color=3D"#212121" face=3D"arial, helvetica, sans-serif"><span style=3D"fo= nt-size: 16px; white-space: pre-wrap;"><br data-mce-bogus=3D"1"></span></fo= nt></div><div><font color=3D"#212121" face=3D"arial, helvetica, sans-serif"= ><span style=3D"font-size: 16px; white-space: pre-wrap;">Francky</span></fo= nt></div><div><span style=3D"color: rgb(33, 33, 33); font-family: arial, he= lvetica, sans-serif; font-size: 12pt; font-style: normal; font-variant-liga= tures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing:= normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: no= ne; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-strok= e-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: = initial; text-decoration-color: initial; float: none; display: inline !impo= rtant;" data-mce-style=3D"color: #212121; font-family: arial, helvetica, sa= ns-serif; font-size: 12pt; font-style: normal; font-variant-ligatures: norm= al; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; or= phans: 2; text-align: left; text-indent: 0px; text-transform: none; white-s= pace: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0p= x; background-color: #ffffff; text-decoration-style: initial; text-decorati= on-color: initial; float: none; display: inline !important;"><br data-mce-b= ogus=3D"1"></span></div></div></body></html> --=_be27ff71-1453-40f3-ba22-0da28a938732--
bug-coreutils@HIDDEN
:bug#33125
; Package coreutils
.
Full text available.Received: (at 33125) by debbugs.gnu.org; 26 Oct 2018 14:30:33 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 26 10:30:33 2018 Received: from localhost ([127.0.0.1]:44221 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gG38D-0003r6-6C for submit <at> debbugs.gnu.org; Fri, 26 Oct 2018 10:30:33 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:54681) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <mail@HIDDEN>) id 1gG38B-0003qt-2v for 33125 <at> debbugs.gnu.org; Fri, 26 Oct 2018 10:30:31 -0400 Received: from [10.0.2.15] ([62.153.148.194]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1M7auJ-1gEhH83xoj-0081Hp; Fri, 26 Oct 2018 16:30:24 +0200 Received: from [10.0.2.15] ([62.153.148.194]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1M7auJ-1gEhH83xoj-0081Hp; Fri, 26 Oct 2018 16:30:24 +0200 Subject: Re: bug#33125: the destrustive and non predent behavior of ALL UNIX commands To: francky.leyn@HIDDEN References: <479526133.337138739.1540361896329.JavaMail.zimbra@HIDDEN> <325662647.338470059.1540372214878.JavaMail.zimbra@HIDDEN> From: Bernhard Voelker <mail@HIDDEN> Message-ID: <f22b47cb-f394-6fb6-79cb-36e3688b7f3d@HIDDEN> Date: Fri, 26 Oct 2018 16:30:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <325662647.338470059.1540372214878.JavaMail.zimbra@HIDDEN> Content-Type: text/plain; charset=utf-8 Content-Language: de-DE-1901 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:86v0i0JTWXwWqcpsfbp2dRMils5jzx4JkJJO5C1fyfLsvjSUjQi 9T+xg+PZAuEvVwz2e1OL3hg0k5CoXQHYuTvA9oqNc46ogv7sac7fQCR3JgD2ElOj9exWA78 2yWKt3x5uMC6T0fsrdni6FM2TuFxU7DSzVc06aalOLlu90LODZSRuzk5wgWDbcg2GKJf4EF vVpkPFjqRBh2+u+fuvUnA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V01:K0:aRlt49TVtew=:NPe5u6xIBziqwDvo3JiGqg N6eZLb1sY5D0e1xvaw9AgG4X0TmdSgSdr9cWOBnzFPnE+2zoaiG7pQwCbIR2363hrudKo7cYG N4u3KGl9lSf34E+tmHP6Cf7gss6uKM9/j1saWGrINPcJt1rhhhXbJSX4B3LHvhz8NQC4vVrJq RdVK3yvqRQgEZkYX/TdneMkT4qOwSPKt4ySd48yUlWhRKnXW7O7Xu39aiClox8L5wgnJCwhtR JvNDa+rJapoDf7RQTERwao2lqtZMTsGAWODCkiDD/ieM46MJsEIwWjjLrJ2JTnvw0q9C4ggtP XqEwTYIAsdz+CdfQMYr70YyWY/C+P78fohNRBCdR7bJIdMlifnBLp4sOj8Ur6+xJjJ9+sZkQG ubxHbUb6vweaP4MttLlu70aqBzK1oGlfmVg35XwJPpaCW8Earfd+KrwjOAebvEVT77aNdNKGB +j1HPUjSMNYwq08bDQqfNyy1BtDpObfRAxr6eZyXzT1oXc4znueyt+ij/ODJ7Kn8bRHuqXISb vzrbNfjD27MbT1StyPIP93tvE0/u2aaSM/ywrUima2xgnGbW5IsN5upkZ3ZyovN0u5JnW3XW2 qKupkVRwt61E0p7M1Pjvh7sivBsYE6InadZoDTvIhmFEXkqBbGR4n1cud9BAxu7Zl9kkQh8CV FwPWsZPo9rcU33jonc5Sk9upwVtJJoZ4sCxneTr0AxHkCPJN0vXEa9Xx9Z3jrsC/21Vb7qHdQ MGpF0dQPpoV7l9zA X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 33125 Cc: Francky Leyn <Francky@HIDDEN>, 33125 <33125 <at> debbugs.gnu.org> 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: -1.0 (-) On 10/24/18 11:10 AM, francky.leyn@HIDDEN wrote: > Do you know a solution to implement the Windows ctrl z feature? backups? Have a nice day, Berny
bug-coreutils@HIDDEN
:bug#33125
; Package coreutils
.
Full text available.Received: (at 33125) by debbugs.gnu.org; 24 Oct 2018 09:10:22 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 24 05:10:22 2018 Received: from localhost ([127.0.0.1]:39062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gFFBF-0001DF-Py for submit <at> debbugs.gnu.org; Wed, 24 Oct 2018 05:10:22 -0400 Received: from andre.telenet-ops.be ([195.130.132.53]:37872) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <francky.leyn@HIDDEN>) id 1gFFBC-0001D2-Ue for 33125 <at> debbugs.gnu.org; Wed, 24 Oct 2018 05:10:20 -0400 Received: from zcsnocm127.telenet-ops.be ([IPv6:2a02:1800:120:86::f00:7f]) by andre.telenet-ops.be with bizsmtp id rMAF1y0012v8kzS01MAFpK; Wed, 24 Oct 2018 11:10:15 +0200 Date: Wed, 24 Oct 2018 11:10:14 +0200 (CEST) From: francky.leyn@HIDDEN To: Bernhard Voelker <mail@HIDDEN> Message-ID: <325662647.338470059.1540372214878.JavaMail.zimbra@HIDDEN> In-Reply-To: <479526133.337138739.1540361896329.JavaMail.zimbra@HIDDEN> References: <479526133.337138739.1540361896329.JavaMail.zimbra@HIDDEN> Subject: Re: bug#33125: the destrustive and non predent behavior of ALL UNIX commands MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_3c09839c-1001-417a-99cb-01497394cea9" X-Originating-IP: [2a02:1811:c410:2d00:94d2:d4eb:d09c:d779] Thread-Topic: bug#33125: the destrustive and non predent behavior of ALL UNIX commands Thread-Index: X7KihjZxQQ5aQWAU+iQ94IDGiEN7ACTf3jxS X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33125 Cc: Francky Leyn <Francky@HIDDEN>, 33125 <33125 <at> debbugs.gnu.org> 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: -1.7 (-) --=_3c09839c-1001-417a-99cb-01497394cea9 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit ----- Op 24 okt 2018 om 8:18 schreef Francky Leyn <francky.leyn@HIDDEN>: On 10/23/18 11:46 AM, francky.leyn@HIDDEN wrote: > Hello, > > I just destroyed 3 days of scaninng work. This was the command: > > ls p.*.png | sort -t. -k2 -n | gawk '{ printf("mv '\''%s'\'' '\''p. %d.png'\''\n", $0, NR+6) }' | bash [ mailto:bug-coreutils@HIDDEN ] > > The problem was that the sequence of mv command resulted in one .png file: > > mv 'p. 123.png' 'p. 124.png' > mv 'p. 124.png' 'p. 125.png' > mv 'p. 126.png' 'p. 127.png' > > The result is that you end up with one file: 'p. 127.png'. outch, sorry for your loss. > When you look at the commands (without the trailing bash), you think it's ok because you think declaratively. However, this thing works imperative/procedural. As you said, the problem originated from a logic error in the counting for the new names of the files. Didn't you run that without the executing "| bash" first? I did, but my coin hasn't fallen. What I should have done, is after seeing the result when executing without the "| bash", is change the command to: ls p.*.png | sort -t. -k2 -n | gawk '{ printf("mv -i '\''%s'\'' '\''p. %d.png'\''\n", $0, NR+6) }' | tac | bash What also could have worked, is: ls p.*.png | sort -t. -k2 -nr | gawk '{ printf("mv -i '\''%s'\'' '\''p. %d.png'\''\n", $0, NR+6) }' | bash Unfortionately, sort doesn't have a reverse option/switch. BQ_BEGIN > I would not have lost all my files if I would have used "mv -i": > > ls p.*.png | sort -t. -k2 -n | gawk '{ printf("mv -i '\''%s'\'' '\''p. %d.png'\''\n", $0, NR+6) }' | bash No, because once you would have confirmed the -i prompt, the same would have happened. The point is to recognize that file 123 is first renamed to 124, then 124 is renamed to 125, and so on. > ============================== > > With the rm command it is the same. It deletes/removes, and the file is gone forever. No tracing back option like a recycle bin under Windows. > > In this mail I make a plei for a more protective manner for the coreutils. The "-i" options should dissapear altoghether and being the default. Instead there should be options to force execution without confirmation. The GNU coreutils are a low-level tool set which adheres to certain standards and provides certain compatibility with other implementations. We cannot (and therefore will not) simply change such behavior. Furthermore, -i is not effective in scripts without stdin (in this case stdin came from the pipe). Finally, as written above, -i would *not* have helped you unless you would have seen the logical mistake. As such, I'm afraid we can not do something at this point. > Also: > > > * There should be a recycle bin for rm. > * There should be a call back facility to undo the latest action. In Windowds this is ctrl z. Different topic. I think this has been already discussed. Again, the GNU coreutils as command line tools are quite low-level, and things like a recycle bin belongs to desktop apps. I once heard about a "trish cli" or something package that implements the rm in the Windows way. I was command line driven. But I was unable to install the package. Do you perhaps know the exact name? I'd compare it with using a sharp Japanese kitchen knife: of course one can cut oneself into the fingers, but if one uses it as it's designed for, then it can do things one can't with a blunt, old steel knife (although the latter may or may not have its merits regarding other aspects). Do you know a solution to implement the Windows ctrl z feature? Have a nice day, Berny Beantwoorden - Iedereen antwoorden - Doorsturen - Meer a BQ_END --=_3c09839c-1001-417a-99cb-01497394cea9 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html><body><div style=3D"font-family: Courier; font-size: 10pt; color: #00= 0000"><div data-marker=3D"__QUOTED_TEXT__"><div style=3D"font-family: Couri= er; font-size: 10pt; color: #000000"><br><br><span id=3D"zwchr">----- Op 24= okt 2018 om 8:18 schreef Francky Leyn <francky.leyn@HIDDEN>:<br>= </span><div><blockquote style=3D"border-left:2px solid #1010FF;margin-left:= 5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-d= ecoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div= style=3D"font-family: Courier; font-size: 10pt; color: #000000"><div><div = style=3D"font-family: Courier; font-size: 10pt; color: #000000;"><div><div = id=3D"main_MSGC352881__body" class=3D"MsgBody MsgBody-text" style=3D"font-s= ize: 1.18rem; background-color: #fdfdfd; color: #333333; font-family: monos= pace; overflow-wrap: break-word; padding: 10px; outline-style: solid; outli= ne-width: 0px !important; outline-color: #ffc421 !important; box-sizing: bo= rder-box; font-style: normal; font-variant-ligatures: normal; font-variant-= caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-al= ign: start; text-indent: 0px; text-transform: none; white-space: normal; wi= dows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration= -style: initial; text-decoration-color: initial;"><div style=3D"font-size: = 1.18rem; box-sizing: border-box;">On 10/23/18 11:46 AM,<span> </span><= span class=3D"Object" id=3D"OBJ_PREFIX_DWT720_ZmEmailObjectHandler" style= =3D"box-sizing: border-box; font-size: 1.18rem; color: #336699; text-decora= tion: none; cursor: pointer;">francky.leyn@HIDDEN</span><span> </s= pan>wrote:<br style=3D"box-sizing: border-box; font-size: 1.18rem;">> He= llo,<span> </span><br style=3D"box-sizing: border-box; font-size: 1.18= rem;">><span> </span><br style=3D"box-sizing: border-box; font-size= : 1.18rem;">> I just destroyed 3 days of scaninng work. This was the com= mand:<span> </span><br style=3D"box-sizing: border-box; font-size: 1.1= 8rem;">><span> </span><br style=3D"box-sizing: border-box; font-siz= e: 1.18rem;">> ls p.*.png | sort -t. -k2 -n | gawk '{ printf("mv '\''%s'= \'' '\''p. %d.png'\''\n", $0, NR+6) }' | bash [<span> </span><span cla= ss=3D"Object" id=3D"OBJ_PREFIX_DWT721_ZmEmailObjectHandler" style=3D"box-si= zing: border-box; font-size: 1.18rem; color: #336699; text-decoration: none= ; cursor: pointer;">mailto:bug-coreutils@HIDDEN</span><span> </span>]= <span> </span><br style=3D"box-sizing: border-box; font-size: 1.18rem;= ">><span> </span><br style=3D"box-sizing: border-box; font-size: 1.= 18rem;">> The problem was that the sequence of mv command resulted in on= e .png file:<span> </span><br style=3D"box-sizing: border-box; font-si= ze: 1.18rem;">><span> </span><br style=3D"box-sizing: border-box; f= ont-size: 1.18rem;">> mv 'p. 123.png' 'p. 124.png'<span> </span><br= style=3D"box-sizing: border-box; font-size: 1.18rem;">> mv 'p. 124.png'= 'p. 125.png'<span> </span><br style=3D"box-sizing: border-box; font-s= ize: 1.18rem;">> mv 'p. 126.png' 'p. 127.png'<span> </span><br styl= e=3D"box-sizing: border-box; font-size: 1.18rem;">><span> </span><b= r style=3D"box-sizing: border-box; font-size: 1.18rem;">> The result is = that you end up with one file: 'p. 127.png'.<span> </span><br style=3D= "box-sizing: border-box; font-size: 1.18rem;"><br style=3D"box-sizing: bord= er-box; font-size: 1.18rem;">outch, sorry for your loss.<br style=3D"box-si= zing: border-box; font-size: 1.18rem;"><br style=3D"box-sizing: border-box;= font-size: 1.18rem;">> When you look at the commands (without the trail= ing bash), you think it's ok because you think declaratively. However, this= thing works imperative/procedural.<span> </span><br style=3D"box-sizi= ng: border-box; font-size: 1.18rem;"><br style=3D"box-sizing: border-box; f= ont-size: 1.18rem;">As you said, the problem originated from a logic error = in the counting<br style=3D"box-sizing: border-box; font-size: 1.18rem;">fo= r the new names of the files.<br style=3D"box-sizing: border-box; font-size= : 1.18rem;">Didn't you run that without the executing "| bash" first?<br st= yle=3D"box-sizing: border-box; font-size: 1.18rem;"></div><div style=3D"fon= t-size: 1.18rem; box-sizing: border-box;"><br></div><div style=3D"font-size= : 1.18rem; box-sizing: border-box;"><span style=3D"font-family: arial, helv= etica, sans-serif; font-size: 12pt; background-color: rgb(255, 204, 153);">= I did, but my coin hasn't fallen. What I should have done, is after seeing = the result when executing without the "| bash", is change the command to:</= span></div><div style=3D"font-size: 1.18rem; box-sizing: border-box;"><br><= /div><div style=3D"font-size: 1.18rem; box-sizing: border-box;"><span style= =3D"background-color: rgb(255, 204, 153);"><span style=3D"font-family: aria= l, helvetica, sans-serif; font-size: 12pt;"> <span style=3D"color: rgb(51, = 51, 51); font-style: normal; font-variant-ligatures: normal; font-variant-c= aps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-ali= gn: start; text-indent: 0px; text-transform: none; white-space: normal; wid= ows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-= style: initial; text-decoration-color: initial; float: none; display: inlin= e !important;">ls p.*.png | sort -t. -k2 -n | gawk '{ printf("mv -i '\''%s'= \'' '\''p. %d.png'\''\n", $0, NR+6) }' | tac | bash</span></span></span><di= v style=3D"clear: both;"><br></div></div></div></div></div></div></div></bl= ockquote><div><br></div><div><span style=3D"font-family: arial, helvetica, = sans-serif; font-size: 12pt;" data-mce-style=3D"font-family: arial, helveti= ca, sans-serif; font-size: 12pt;">What also could have worked, is:</span></= div><div><br data-mce-bogus=3D"1"></div><div> <!--StartFragment--><span sty= le=3D"color: rgb(51, 51, 51); font-family: "courier new", courier= , monaco, monospace, sans-serif; font-size: 18.88px; font-style: normal; fo= nt-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; = letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; te= xt-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -web= kit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration= -color: initial; background-color: rgb(255, 204, 153);" data-mce-style=3D"c= olor: #333333; font-family: 'courier new', courier, monaco, monospace, sans= -serif; font-size: 18.88px; font-style: normal; font-variant-ligatures: nor= mal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; o= rphans: 2; text-align: start; text-indent: 0px; text-transform: none; white= -space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0p= x; text-decoration-style: initial; text-decoration-color: initial; backgrou= nd-color: #ffcc99;"><span style=3D"font-size: 12pt;" data-mce-style=3D"font= -size: 12pt;"><span style=3D"color: #333333; font-style: normal; font-varia= nt-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-s= pacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-trans= form: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text= -stroke-width: 0px; text-decoration-style: initial; text-decoration-color: = initial; float: none; display: inline !important;" data-mce-style=3D"color:= #333333; font-style: normal; font-variant-ligatures: normal; font-variant-= caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-al= ign: start; text-indent: 0px; text-transform: none; white-space: normal; wi= dows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration= -style: initial; text-decoration-color: initial; float: none; display: inli= ne !important;">ls p.*.png | sort -t. -k2 -nr | gawk '{ printf("mv -i '\''%= s'\'' '\''p. %d.png'\''\n", $0, NR+6) }' | bash</span></span></span><!--End= Fragment--><div style=3D"clear: both;" data-mce-style=3D"clear: both;"><br>= </div></div><div><span style=3D"font-family: arial, helvetica, sans-serif; = font-size: 12pt; background-color: rgb(255, 204, 153);" data-mce-style=3D"f= ont-family: arial, helvetica, sans-serif; font-size: 12pt; background-color= : #ffcc99;">Unfortionately, sort doesn't have a reverse option/switch.</spa= n></div><div><br data-mce-bogus=3D"1"></div><blockquote style=3D"border-lef= t:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight= :normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,= sans-serif;font-size:12pt;"><div style=3D"font-family: Courier; font-size: = 10pt; color: #000000"><div><div style=3D"font-family: Courier; font-size: 1= 0pt; color: #000000;"><div><div id=3D"main_MSGC352881__body" class=3D"MsgBo= dy MsgBody-text" style=3D"font-size: 1.18rem; background-color: #fdfdfd; co= lor: #333333; font-family: monospace; overflow-wrap: break-word; padding: 1= 0px; outline-style: solid; outline-width: 0px !important; outline-color: #f= fc421 !important; box-sizing: border-box; font-style: normal; font-variant-= ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spac= ing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transfor= m: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-st= roke-width: 0px; text-decoration-style: initial; text-decoration-color: ini= tial;"><div style=3D"font-size: 1.18rem; box-sizing: border-box;">> I wo= uld not have lost all my files if I would have used "mv -i":<span> </s= pan><br style=3D"box-sizing: border-box; font-size: 1.18rem;">><span>&nb= sp;</span><br style=3D"box-sizing: border-box; font-size: 1.18rem;">> ls= p.*.png | sort -t. -k2 -n | gawk '{ printf("mv -i '\''%s'\'' '\''p. %d.png= '\''\n", $0, NR+6) }' | bash<span> </span><br style=3D"box-sizing: bor= der-box; font-size: 1.18rem;"><br style=3D"box-sizing: border-box; font-siz= e: 1.18rem;">No, because once you would have confirmed the -i prompt, the s= ame would have happened.<br style=3D"box-sizing: border-box; font-size: 1.1= 8rem;">The point is to recognize that file 123 is first renamed to 124, the= n 124 is renamed<br style=3D"box-sizing: border-box; font-size: 1.18rem;">t= o 125, and so on.<br style=3D"box-sizing: border-box; font-size: 1.18rem;">= <br style=3D"box-sizing: border-box; font-size: 1.18rem;">> =3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D<span> </span><br style=3D"box-sizing: border-box; font-size: 1.18r= em;">><span> </span><br style=3D"box-sizing: border-box; font-size:= 1.18rem;">> With the rm command it is the same. It deletes/removes, and= the file is gone forever. No tracing back option like a recycle bin under = Windows.<span> </span><br style=3D"box-sizing: border-box; font-size: = 1.18rem;">><span> </span><br style=3D"box-sizing: border-box; font-= size: 1.18rem;">> In this mail I make a plei for a more protective manne= r for the coreutils. The "-i" options should dissapear altoghether and bein= g the default. Instead there should be options to force execution without c= onfirmation.<span> </span><br style=3D"box-sizing: border-box; font-si= ze: 1.18rem;"><br style=3D"box-sizing: border-box; font-size: 1.18rem;">The= GNU coreutils are a low-level tool set which adheres to certain<br style= =3D"box-sizing: border-box; font-size: 1.18rem;">standards and provides cer= tain compatibility with other implementations.<br style=3D"box-sizing: bord= er-box; font-size: 1.18rem;">We cannot (and therefore will not) simply chan= ge such behavior.<br style=3D"box-sizing: border-box; font-size: 1.18rem;">= Furthermore, -i is not effective in scripts without stdin (in this case<br = style=3D"box-sizing: border-box; font-size: 1.18rem;">stdin came from the p= ipe).<br style=3D"box-sizing: border-box; font-size: 1.18rem;">Finally, as = written above, -i would *not* have helped you unless you<br style=3D"box-si= zing: border-box; font-size: 1.18rem;">would have seen the logical mistake.= <br style=3D"box-sizing: border-box; font-size: 1.18rem;"><br style=3D"box-= sizing: border-box; font-size: 1.18rem;">As such, I'm afraid we can not do = something at this point.<br style=3D"box-sizing: border-box; font-size: 1.1= 8rem;"><br style=3D"box-sizing: border-box; font-size: 1.18rem;">> Also:= <span> </span><br style=3D"box-sizing: border-box; font-size: 1.18rem;= ">><span> </span><br style=3D"box-sizing: border-box; font-size: 1.= 18rem;">><span> </span><br style=3D"box-sizing: border-box; font-si= ze: 1.18rem;">> * There should be a recycle bin for rm.<sp= an> </span><br style=3D"box-sizing: border-box; font-size: 1.18rem;">&= gt; * There should be a call back facility to undo the latest= action. In Windowds this is ctrl z.<span> </span><br style=3D"box-siz= ing: border-box; font-size: 1.18rem;"><br style=3D"box-sizing: border-box; = font-size: 1.18rem;">Different topic.<br style=3D"box-sizing: border-box; f= ont-size: 1.18rem;">I think this has been already discussed. Again, t= he GNU coreutils as command line<br style=3D"box-sizing: border-box; font-s= ize: 1.18rem;">tools are quite low-level, and things like a recycle bin bel= ongs to desktop apps.</div><div style=3D"font-size: 1.18rem; box-sizing: bo= rder-box;"><br></div><div style=3D"font-size: 1.18rem; box-sizing: border-b= ox;"><span style=3D"background-color: rgb(255, 204, 153);">I once heard abo= ut a "trish cli" or something package that implements the rm in the Windows= way. I was command line driven. But I was unable to install the package. D= o you perhaps know the exact name?</span><br style=3D"box-sizing: border-bo= x; font-size: 1.18rem;"><br style=3D"box-sizing: border-box; font-size: 1.1= 8rem;">I'd compare it with using a sharp Japanese kitchen knife: of course = one can cut oneself<br style=3D"box-sizing: border-box; font-size: 1.18rem;= ">into the fingers, but if one uses it as it's designed for, then it can do= things<br style=3D"box-sizing: border-box; font-size: 1.18rem;">one can't = with a blunt, old steel knife (although the latter may or may not have<br s= tyle=3D"box-sizing: border-box; font-size: 1.18rem;">its merits regarding o= ther aspects).<br style=3D"box-sizing: border-box; font-size: 1.18rem;"></d= iv><div style=3D"font-size: 1.18rem; box-sizing: border-box;"><br></div><di= v style=3D"font-size: 1.18rem; box-sizing: border-box;"><span style=3D"back= ground-color: rgb(255, 204, 153);">Do you know a solution to implement the = Windows ctrl z feature?</span></div><div style=3D"font-size: 1.18rem; box-s= izing: border-box;"><br style=3D"box-sizing: border-box; font-size: 1.18rem= ;">Have a nice day,<br style=3D"box-sizing: border-box; font-size: 1.18rem;= ">Berny</div></div><div class=3D"footer" id=3D"main_MSGC352881__footer" sty= le=3D"font-size: 14px; box-sizing: border-box; clear: both; padding: 15px 5= px 5px; transition: visibility 0s linear 0s, opacity 0.5s linear; opacity: = 1; color: #000000; font-family: Roboto, 'Segoe UI', 'Lucida Sans', sans-ser= if; font-style: normal; font-variant-ligatures: normal; font-variant-caps: = normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: s= tart; text-indent: 0px; text-transform: none; white-space: normal; widows: = 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style= : initial; text-decoration-color: initial;">Beantwoorden - Iedere= en antwoorden - Doorsturen - Meer a</div></div></div></= div></div></blockquote></div></div><br></div></div></body></html> --=_3c09839c-1001-417a-99cb-01497394cea9--
bug-coreutils@HIDDEN
:bug#33125
; Package coreutils
.
Full text available.Received: (at 33125) by debbugs.gnu.org; 24 Oct 2018 06:18:20 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 24 02:18:20 2018 Received: from localhost ([127.0.0.1]:39034 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gFCUm-0005gk-A0 for submit <at> debbugs.gnu.org; Wed, 24 Oct 2018 02:18:20 -0400 Received: from andre.telenet-ops.be ([195.130.132.53]:53040) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <francky.leyn@HIDDEN>) id 1gFCUj-0005gb-V3 for 33125 <at> debbugs.gnu.org; Wed, 24 Oct 2018 02:18:18 -0400 Received: from zcsnocm127.telenet-ops.be ([IPv6:2a02:1800:120:86::f00:7f]) by andre.telenet-ops.be with bizsmtp id rJJG1y00P2v8kzS01JJG8x; Wed, 24 Oct 2018 08:18:16 +0200 Date: Wed, 24 Oct 2018 08:18:16 +0200 (CEST) From: francky.leyn@HIDDEN To: Bernhard Voelker <mail@HIDDEN> Message-ID: <479526133.337138739.1540361896329.JavaMail.zimbra@HIDDEN> Subject: bug#33125: the destrustive and non predent behavior of ALL UNIX commands MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_3c810fac-2e1f-498b-bd6f-25b90763d7ed" X-Originating-IP: [2a02:1811:c410:2d00:c09f:442e:41eb:a0d1] Thread-Index: X7KihjZxQQ5aQWAU+iQ94IDGiEN7AA== Thread-Topic: bug#33125: the destrustive and non predent behavior of ALL UNIX commands X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33125 Cc: Francky Leyn <Francky@HIDDEN>, 33125 <at> debbugs.gnu.org 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: -1.7 (-) --=_3c810fac-2e1f-498b-bd6f-25b90763d7ed Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit On 10/23/18 11:46 AM, francky.leyn@HIDDEN wrote: > Hello, > > I just destroyed 3 days of scaninng work. This was the command: > > ls p.*.png | sort -t. -k2 -n | gawk '{ printf("mv '\''%s'\'' '\''p. %d.png'\''\n", $0, NR+6) }' | bash [ mailto:bug-coreutils@HIDDEN ] > > The problem was that the sequence of mv command resulted in one .png file: > > mv 'p. 123.png' 'p. 124.png' > mv 'p. 124.png' 'p. 125.png' > mv 'p. 126.png' 'p. 127.png' > > The result is that you end up with one file: 'p. 127.png'. outch, sorry for your loss. > When you look at the commands (without the trailing bash), you think it's ok because you think declaratively. However, this thing works imperative/procedural. As you said, the problem originated from a logic error in the counting for the new names of the files. Didn't you run that without the executing "| bash" first? I did, but my coin hasn't fallen. What I should have done, is after seeing the result when executing without the "| bash", is change the command to: ls p.*.png | sort -t. -k2 -n | gawk '{ printf("mv -i '\''%s'\'' '\''p. %d.png'\''\n", $0, NR+6) }' | tac | bash > I would not have lost all my files if I would have used "mv -i": > > ls p.*.png | sort -t. -k2 -n | gawk '{ printf("mv -i '\''%s'\'' '\''p. %d.png'\''\n", $0, NR+6) }' | bash No, because once you would have confirmed the -i prompt, the same would have happened. The point is to recognize that file 123 is first renamed to 124, then 124 is renamed to 125, and so on. > ============================== > > With the rm command it is the same. It deletes/removes, and the file is gone forever. No tracing back option like a recycle bin under Windows. > > In this mail I make a plei for a more protective manner for the coreutils. The "-i" options should dissapear altoghether and being the default. Instead there should be options to force execution without confirmation. The GNU coreutils are a low-level tool set which adheres to certain standards and provides certain compatibility with other implementations. We cannot (and therefore will not) simply change such behavior. Furthermore, -i is not effective in scripts without stdin (in this case stdin came from the pipe). Finally, as written above, -i would *not* have helped you unless you would have seen the logical mistake. As such, I'm afraid we can not do something at this point. > Also: > > > * There should be a recycle bin for rm. > * There should be a call back facility to undo the latest action. In Windowds this is ctrl z. Different topic. I think this has been already discussed. Again, the GNU coreutils as command line tools are quite low-level, and things like a recycle bin belongs to desktop apps. I once heard about a "trish cli" or something package that implements the rm in the Windows way. I was command line driven. But I was unable to install the package. Do you perhaps know the exact name? I'd compare it with using a sharp Japanese kitchen knife: of course one can cut oneself into the fingers, but if one uses it as it's designed for, then it can do things one can't with a blunt, old steel knife (although the latter may or may not have its merits regarding other aspects). Do you know a solution to implement the Windows ctrl z feature? Have a nice day, Berny Beantwoorden - Iedereen antwoorden - Doorsturen - Meer a --=_3c810fac-2e1f-498b-bd6f-25b90763d7ed Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html><body><div style=3D"font-family: Courier; font-size: 10pt; color: #00= 0000"><div data-marker=3D"__QUOTED_TEXT__"><div style=3D"font-family: Couri= er; font-size: 10pt; color: #000000;" data-mce-style=3D"font-family: Courie= r; font-size: 10pt; color: #000000;"><div> <div id=3D"main_MSGC352881__body= " class=3D"MsgBody MsgBody-text" style=3D"font-size: 1.18rem; background-co= lor: #fdfdfd; color: #333333; font-family: monospace; overflow-wrap: break-= word; padding: 10px; outline-style: solid; outline-width: 0px !important; o= utline-color: #ffc421 !important; box-sizing: border-box; font-style: norma= l; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: = 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0p= x; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;= -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decor= ation-color: initial;" data-mce-style=3D"font-size: 1.18rem; background-col= or: #fdfdfd; color: #333333; font-family: monospace; overflow-wrap: break-w= ord; padding: 10px; outline-style: solid; outline-width: 0px !important; ou= tline-color: #ffc421 !important; box-sizing: border-box; font-style: normal= ; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 4= 00; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px= ; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decora= tion-color: initial;"><div style=3D"font-size: 1.18rem; box-sizing: border-= box;" data-mce-style=3D"font-size: 1.18rem; box-sizing: border-box;">On 10/= 23/18 11:46 AM,<span> </span><span class=3D"Object" id=3D"OBJ_PREFIX_D= WT720_ZmEmailObjectHandler" style=3D"box-sizing: border-box; font-size: 1.1= 8rem; color: #336699; text-decoration: none; cursor: pointer;" data-mce-sty= le=3D"box-sizing: border-box; font-size: 1.18rem; color: #336699; text-deco= ration: none; cursor: pointer;">francky.leyn@HIDDEN</span><span> <= /span>wrote:<br style=3D"box-sizing: border-box; font-size: 1.18rem;" data-= mce-style=3D"box-sizing: border-box; font-size: 1.18rem;">> Hello,<span>= </span><br style=3D"box-sizing: border-box; font-size: 1.18rem;" data= -mce-style=3D"box-sizing: border-box; font-size: 1.18rem;">><span> = </span><br style=3D"box-sizing: border-box; font-size: 1.18rem;" data-mce-s= tyle=3D"box-sizing: border-box; font-size: 1.18rem;">> I just destroyed = 3 days of scaninng work. This was the command:<span> </span><br style= =3D"box-sizing: border-box; font-size: 1.18rem;" data-mce-style=3D"box-sizi= ng: border-box; font-size: 1.18rem;">><span> </span><br style=3D"bo= x-sizing: border-box; font-size: 1.18rem;" data-mce-style=3D"box-sizing: bo= rder-box; font-size: 1.18rem;">> ls p.*.png | sort -t. -k2 -n | gawk '{ = printf("mv '\''%s'\'' '\''p. %d.png'\''\n", $0, NR+6) }' | bash [<span>&nbs= p;</span><span class=3D"Object" id=3D"OBJ_PREFIX_DWT721_ZmEmailObjectHandle= r" style=3D"box-sizing: border-box; font-size: 1.18rem; color: #336699; tex= t-decoration: none; cursor: pointer;" data-mce-style=3D"box-sizing: border-= box; font-size: 1.18rem; color: #336699; text-decoration: none; cursor: poi= nter;">mailto:bug-coreutils@HIDDEN</span><span> </span>]<span> <= /span><br style=3D"box-sizing: border-box; font-size: 1.18rem;" data-mce-st= yle=3D"box-sizing: border-box; font-size: 1.18rem;">><span> </span>= <br style=3D"box-sizing: border-box; font-size: 1.18rem;" data-mce-style=3D= "box-sizing: border-box; font-size: 1.18rem;">> The problem was that the= sequence of mv command resulted in one .png file:<span> </span><br st= yle=3D"box-sizing: border-box; font-size: 1.18rem;" data-mce-style=3D"box-s= izing: border-box; font-size: 1.18rem;">><span> </span><br style=3D= "box-sizing: border-box; font-size: 1.18rem;" data-mce-style=3D"box-sizing:= border-box; font-size: 1.18rem;">> mv 'p. 123.png' 'p. 124.png'<span>&n= bsp;</span><br style=3D"box-sizing: border-box; font-size: 1.18rem;" data-m= ce-style=3D"box-sizing: border-box; font-size: 1.18rem;">> mv 'p. 124.pn= g' 'p. 125.png'<span> </span><br style=3D"box-sizing: border-box; font= -size: 1.18rem;" data-mce-style=3D"box-sizing: border-box; font-size: 1.18r= em;">> mv 'p. 126.png' 'p. 127.png'<span> </span><br style=3D"box-s= izing: border-box; font-size: 1.18rem;" data-mce-style=3D"box-sizing: borde= r-box; font-size: 1.18rem;">><span> </span><br style=3D"box-sizing:= border-box; font-size: 1.18rem;" data-mce-style=3D"box-sizing: border-box;= font-size: 1.18rem;">> The result is that you end up with one file: 'p.= 127.png'.<span> </span><br style=3D"box-sizing: border-box; font-size= : 1.18rem;" data-mce-style=3D"box-sizing: border-box; font-size: 1.18rem;">= <br style=3D"box-sizing: border-box; font-size: 1.18rem;" data-mce-style=3D= "box-sizing: border-box; font-size: 1.18rem;">outch, sorry for your loss.<b= r style=3D"box-sizing: border-box; font-size: 1.18rem;" data-mce-style=3D"b= ox-sizing: border-box; font-size: 1.18rem;"><br style=3D"box-sizing: border= -box; font-size: 1.18rem;" data-mce-style=3D"box-sizing: border-box; font-s= ize: 1.18rem;">> When you look at the commands (without the trailing bas= h), you think it's ok because you think declaratively. However, this thing = works imperative/procedural.<span> </span><br style=3D"box-sizing: bor= der-box; font-size: 1.18rem;" data-mce-style=3D"box-sizing: border-box; fon= t-size: 1.18rem;"><br style=3D"box-sizing: border-box; font-size: 1.18rem;"= data-mce-style=3D"box-sizing: border-box; font-size: 1.18rem;">As you said= , the problem originated from a logic error in the counting<br style=3D"box= -sizing: border-box; font-size: 1.18rem;" data-mce-style=3D"box-sizing: bor= der-box; font-size: 1.18rem;">for the new names of the files.<br style=3D"b= ox-sizing: border-box; font-size: 1.18rem;" data-mce-style=3D"box-sizing: b= order-box; font-size: 1.18rem;">Didn't you run that without the executing "= | bash" first?<br style=3D"box-sizing: border-box; font-size: 1.18rem;" dat= a-mce-style=3D"box-sizing: border-box; font-size: 1.18rem;"></div><div styl= e=3D"font-size: 1.18rem; box-sizing: border-box;" data-mce-style=3D"font-si= ze: 1.18rem; box-sizing: border-box;"><br data-mce-bogus=3D"1"></div><div s= tyle=3D"font-size: 1.18rem; box-sizing: border-box;" data-mce-style=3D"font= -size: 1.18rem; box-sizing: border-box;"><span style=3D"font-family: arial,= helvetica, sans-serif; font-size: 12pt; background-color: rgb(255, 204, 15= 3);" data-mce-style=3D"font-family: arial, helvetica, sans-serif; font-size= : 12pt; background-color: #ffcc99;">I did, but my coin hasn't fallen. What = I should have done, is after seeing the result when executing without the "= | bash", is change the command to:<!--EndFragment--></span></div><div style= =3D"font-size: 1.18rem; box-sizing: border-box;" data-mce-style=3D"font-siz= e: 1.18rem; box-sizing: border-box;"><br data-mce-bogus=3D"1"></div><div st= yle=3D"font-size: 1.18rem; box-sizing: border-box;" data-mce-style=3D"font-= size: 1.18rem; box-sizing: border-box;"><span style=3D"background-color: rg= b(255, 204, 153);" data-mce-style=3D"background-color: #ffcc99;"><span styl= e=3D"font-family: arial, helvetica, sans-serif; font-size: 12pt;" data-mce-= style=3D"font-family: arial, helvetica, sans-serif; font-size: 12pt;"> <!--= StartFragment--><span style=3D"color: rgb(51, 51, 51); font-style: normal; = font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400= ; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -w= ebkit-text-stroke-width: 0px; text-decoration-style: initial; text-decorati= on-color: initial; float: none; display: inline !important;" data-mce-style= =3D"color: #333333; font-style: normal; font-variant-ligatures: normal; fon= t-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: = 2; text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-= decoration-style: initial; text-decoration-color: initial; float: none; dis= play: inline !important;">ls p.*.png | sort -t. -k2 -n | gawk '{ printf("mv= -i '\''%s'\'' '\''p. %d.png'\''\n", $0, NR+6) }' | tac | bash</span></span= ><!--EndFragment--></span><div style=3D"clear: both;" data-mce-style=3D"cle= ar: both;"><br></div></div><div style=3D"font-size: 1.18rem; box-sizing: bo= rder-box;" data-mce-style=3D"font-size: 1.18rem; box-sizing: border-box;"><= br style=3D"box-sizing: border-box; font-size: 1.18rem;" data-mce-style=3D"= box-sizing: border-box; font-size: 1.18rem;">> I would not have lost all= my files if I would have used "mv -i":<span> </span><br style=3D"box-= sizing: border-box; font-size: 1.18rem;" data-mce-style=3D"box-sizing: bord= er-box; font-size: 1.18rem;">><span> </span><br style=3D"box-sizing= : border-box; font-size: 1.18rem;" data-mce-style=3D"box-sizing: border-box= ; font-size: 1.18rem;">> ls p.*.png | sort -t. -k2 -n | gawk '{ printf("= mv -i '\''%s'\'' '\''p. %d.png'\''\n", $0, NR+6) }' | bash<span> </spa= n><br style=3D"box-sizing: border-box; font-size: 1.18rem;" data-mce-style= =3D"box-sizing: border-box; font-size: 1.18rem;"><br style=3D"box-sizing: b= order-box; font-size: 1.18rem;" data-mce-style=3D"box-sizing: border-box; f= ont-size: 1.18rem;">No, because once you would have confirmed the -i prompt= , the same would have happened.<br style=3D"box-sizing: border-box; font-si= ze: 1.18rem;" data-mce-style=3D"box-sizing: border-box; font-size: 1.18rem;= ">The point is to recognize that file 123 is first renamed to 124, then 124= is renamed<br style=3D"box-sizing: border-box; font-size: 1.18rem;" data-m= ce-style=3D"box-sizing: border-box; font-size: 1.18rem;">to 125, and so on.= <br style=3D"box-sizing: border-box; font-size: 1.18rem;" data-mce-style=3D= "box-sizing: border-box; font-size: 1.18rem;"><br style=3D"box-sizing: bord= er-box; font-size: 1.18rem;" data-mce-style=3D"box-sizing: border-box; font= -size: 1.18rem;">> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<span> </span><br style=3D"box-= sizing: border-box; font-size: 1.18rem;" data-mce-style=3D"box-sizing: bord= er-box; font-size: 1.18rem;">><span> </span><br style=3D"box-sizing= : border-box; font-size: 1.18rem;" data-mce-style=3D"box-sizing: border-box= ; font-size: 1.18rem;">> With the rm command it is the same. It deletes/= removes, and the file is gone forever. No tracing back option like a recycl= e bin under Windows.<span> </span><br style=3D"box-sizing: border-box;= font-size: 1.18rem;" data-mce-style=3D"box-sizing: border-box; font-size: = 1.18rem;">><span> </span><br style=3D"box-sizing: border-box; font-= size: 1.18rem;" data-mce-style=3D"box-sizing: border-box; font-size: 1.18re= m;">> In this mail I make a plei for a more protective manner for the co= reutils. The "-i" options should dissapear altoghether and being the defaul= t. Instead there should be options to force execution without confirmation.= <span> </span><br style=3D"box-sizing: border-box; font-size: 1.18rem;= " data-mce-style=3D"box-sizing: border-box; font-size: 1.18rem;"><br style= =3D"box-sizing: border-box; font-size: 1.18rem;" data-mce-style=3D"box-sizi= ng: border-box; font-size: 1.18rem;">The GNU coreutils are a low-level tool= set which adheres to certain<br style=3D"box-sizing: border-box; font-size= : 1.18rem;" data-mce-style=3D"box-sizing: border-box; font-size: 1.18rem;">= standards and provides certain compatibility with other implementations.<br= style=3D"box-sizing: border-box; font-size: 1.18rem;" data-mce-style=3D"bo= x-sizing: border-box; font-size: 1.18rem;">We cannot (and therefore will no= t) simply change such behavior.<br style=3D"box-sizing: border-box; font-si= ze: 1.18rem;" data-mce-style=3D"box-sizing: border-box; font-size: 1.18rem;= ">Furthermore, -i is not effective in scripts without stdin (in this case<b= r style=3D"box-sizing: border-box; font-size: 1.18rem;" data-mce-style=3D"b= ox-sizing: border-box; font-size: 1.18rem;">stdin came from the pipe).<br s= tyle=3D"box-sizing: border-box; font-size: 1.18rem;" data-mce-style=3D"box-= sizing: border-box; font-size: 1.18rem;">Finally, as written above, -i woul= d *not* have helped you unless you<br style=3D"box-sizing: border-box; font= -size: 1.18rem;" data-mce-style=3D"box-sizing: border-box; font-size: 1.18r= em;">would have seen the logical mistake.<br style=3D"box-sizing: border-bo= x; font-size: 1.18rem;" data-mce-style=3D"box-sizing: border-box; font-size= : 1.18rem;"><br style=3D"box-sizing: border-box; font-size: 1.18rem;" data-= mce-style=3D"box-sizing: border-box; font-size: 1.18rem;">As such, I'm afra= id we can not do something at this point.<br style=3D"box-sizing: border-bo= x; font-size: 1.18rem;" data-mce-style=3D"box-sizing: border-box; font-size= : 1.18rem;"><br style=3D"box-sizing: border-box; font-size: 1.18rem;" data-= mce-style=3D"box-sizing: border-box; font-size: 1.18rem;">> Also:<span>&= nbsp;</span><br style=3D"box-sizing: border-box; font-size: 1.18rem;" data-= mce-style=3D"box-sizing: border-box; font-size: 1.18rem;">><span> <= /span><br style=3D"box-sizing: border-box; font-size: 1.18rem;" data-mce-st= yle=3D"box-sizing: border-box; font-size: 1.18rem;">><span> </span>= <br style=3D"box-sizing: border-box; font-size: 1.18rem;" data-mce-style=3D= "box-sizing: border-box; font-size: 1.18rem;">> * There sh= ould be a recycle bin for rm.<span> </span><br style=3D"box-sizing: bo= rder-box; font-size: 1.18rem;" data-mce-style=3D"box-sizing: border-box; fo= nt-size: 1.18rem;">> * There should be a call back facilit= y to undo the latest action. In Windowds this is ctrl z.<span> </span>= <br style=3D"box-sizing: border-box; font-size: 1.18rem;" data-mce-style=3D= "box-sizing: border-box; font-size: 1.18rem;"><br style=3D"box-sizing: bord= er-box; font-size: 1.18rem;" data-mce-style=3D"box-sizing: border-box; font= -size: 1.18rem;">Different topic.<br style=3D"box-sizing: border-box; font-= size: 1.18rem;" data-mce-style=3D"box-sizing: border-box; font-size: 1.18re= m;">I think this has been already discussed. Again, the GNU coreutils= as command line<br style=3D"box-sizing: border-box; font-size: 1.18rem;" d= ata-mce-style=3D"box-sizing: border-box; font-size: 1.18rem;">tools are qui= te low-level, and things like a recycle bin belongs to desktop apps.</div><= div style=3D"font-size: 1.18rem; box-sizing: border-box;" data-mce-style=3D= "font-size: 1.18rem; box-sizing: border-box;"><br data-mce-bogus=3D"1"></di= v><div style=3D"font-size: 1.18rem; box-sizing: border-box;" data-mce-style= =3D"font-size: 1.18rem; box-sizing: border-box;"><span style=3D"background-= color: rgb(255, 204, 153);" data-mce-style=3D"background-color: #ffcc99;">I= once heard about a "trish cli" or something package that implements the rm= in the Windows way. I was command line driven. But I was unable to install= the package. Do you perhaps know the exact name?</span><br style=3D"box-si= zing: border-box; font-size: 1.18rem;" data-mce-style=3D"box-sizing: border= -box; font-size: 1.18rem;"><br style=3D"box-sizing: border-box; font-size: = 1.18rem;" data-mce-style=3D"box-sizing: border-box; font-size: 1.18rem;">I'= d compare it with using a sharp Japanese kitchen knife: of course one can c= ut oneself<br style=3D"box-sizing: border-box; font-size: 1.18rem;" data-mc= e-style=3D"box-sizing: border-box; font-size: 1.18rem;">into the fingers, b= ut if one uses it as it's designed for, then it can do things<br style=3D"b= ox-sizing: border-box; font-size: 1.18rem;" data-mce-style=3D"box-sizing: b= order-box; font-size: 1.18rem;">one can't with a blunt, old steel knife (al= though the latter may or may not have<br style=3D"box-sizing: border-box; f= ont-size: 1.18rem;" data-mce-style=3D"box-sizing: border-box; font-size: 1.= 18rem;">its merits regarding other aspects).<br style=3D"box-sizing: border= -box; font-size: 1.18rem;" data-mce-style=3D"box-sizing: border-box; font-s= ize: 1.18rem;"></div><div style=3D"font-size: 1.18rem; box-sizing: border-b= ox;" data-mce-style=3D"font-size: 1.18rem; box-sizing: border-box;"><br dat= a-mce-bogus=3D"1"></div><div style=3D"font-size: 1.18rem; box-sizing: borde= r-box;" data-mce-style=3D"font-size: 1.18rem; box-sizing: border-box;"><spa= n style=3D"background-color: rgb(255, 204, 153);" data-mce-style=3D"backgro= und-color: #ffcc99;">Do you know a solution to implement the Windows ctrl z= feature?</span></div><div style=3D"font-size: 1.18rem; box-sizing: border-= box;" data-mce-style=3D"font-size: 1.18rem; box-sizing: border-box;"><br st= yle=3D"box-sizing: border-box; font-size: 1.18rem;" data-mce-style=3D"box-s= izing: border-box; font-size: 1.18rem;">Have a nice day,<br style=3D"box-si= zing: border-box; font-size: 1.18rem;" data-mce-style=3D"box-sizing: border= -box; font-size: 1.18rem;">Berny</div></div><div class=3D"footer" id=3D"mai= n_MSGC352881__footer" style=3D"font-size: 14px; box-sizing: border-box; cle= ar: both; padding: 15px 5px 5px; transition: visibility 0s linear 0s, opaci= ty 0.5s linear; opacity: 1; color: #000000; font-family: Roboto, 'Segoe UI'= , 'Lucida Sans', sans-serif; font-style: normal; font-variant-ligatures: no= rmal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; = orphans: 2; text-align: start; text-indent: 0px; text-transform: none; whit= e-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0= px; text-decoration-style: initial; text-decoration-color: initial;" data-m= ce-style=3D"font-size: 14px; box-sizing: border-box; clear: both; padding: = 15px 5px 5px; transition: visibility 0s linear 0s, opacity 0.5s linear; opa= city: 1; color: #000000; font-family: Roboto, 'Segoe UI', 'Lucida Sans', sa= ns-serif; font-style: normal; font-variant-ligatures: normal; font-variant-= caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-al= ign: start; text-indent: 0px; text-transform: none; white-space: normal; wi= dows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration= -style: initial; text-decoration-color: initial;"><a class=3D"ConvLink Link= " id=3D"main_MSGC352881__footer_reply" style=3D"box-sizing: border-box; cur= sor: pointer; font-size: 1rem; color: #336699; white-space: nowrap; margin:= 0px 3px;" data-mce-style=3D"box-sizing: border-box; cursor: pointer; font-= size: 1rem; color: #336699; white-space: nowrap; margin: 0px 3px;"></a>Bean= twoorden - <a class=3D"ConvLink Link" id=3D"main_MSGC352881__foot= er_replyAll" style=3D"box-sizing: border-box; cursor: pointer; font-size: 1= rem; color: #336699; white-space: nowrap; margin: 0px 3px;" data-mce-style= =3D"box-sizing: border-box; cursor: pointer; font-size: 1rem; color: #33669= 9; white-space: nowrap; margin: 0px 3px;"></a>Iedereen antwoorden -&nb= sp;<a class=3D"ConvLink Link" id=3D"main_MSGC352881__footer_forward" style= =3D"box-sizing: border-box; cursor: pointer; font-size: 1rem; color: #33669= 9; white-space: nowrap; margin: 0px 3px;" data-mce-style=3D"box-sizing: bor= der-box; cursor: pointer; font-size: 1rem; color: #336699; white-space: now= rap; margin: 0px 3px;"></a>Doorsturen - <a class=3D"ConvLink Link= " id=3D"main_MSGC352881__footer_moreActions" style=3D"box-sizing: border-bo= x; cursor: pointer; font-size: 1rem; color: #336699; white-space: nowrap; m= argin: 0px 3px;" data-mce-style=3D"box-sizing: border-box; cursor: pointer;= font-size: 1rem; color: #336699; white-space: nowrap; margin: 0px 3px;"></= a>Meer a</div> </div></div><br></div></div></body></html> --=_3c810fac-2e1f-498b-bd6f-25b90763d7ed--
bug-coreutils@HIDDEN
:bug#33125
; Package coreutils
.
Full text available.Received: (at 33125) by debbugs.gnu.org; 23 Oct 2018 23:44:58 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 23 19:44:58 2018 Received: from localhost ([127.0.0.1]:38921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gF6M5-0004Pw-JS for submit <at> debbugs.gnu.org; Tue, 23 Oct 2018 19:44:58 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:59480) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eggert@HIDDEN>) id 1gF6M3-0004Pi-5B for 33125 <at> debbugs.gnu.org; Tue, 23 Oct 2018 19:44:55 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 1F3D316009A; Tue, 23 Oct 2018 16:44:49 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id xjABDj4qiT36; Tue, 23 Oct 2018 16:44:48 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 011DF160111; Tue, 23 Oct 2018 16:44:48 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id DLqLV7834xDE; Tue, 23 Oct 2018 16:44:47 -0700 (PDT) Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id D942416009A; Tue, 23 Oct 2018 16:44:47 -0700 (PDT) Subject: Re: bug#33125: the destrustive and non predent behavior of ALL UNIX commands To: francky.leyn@HIDDEN, 33125 <at> debbugs.gnu.org References: <2134585113.328113294.1540287973106.JavaMail.zimbra@HIDDEN> From: Paul Eggert <eggert@HIDDEN> Openpgp: preference=signencrypt Autocrypt: addr=eggert@HIDDEN; prefer-encrypt=mutual; keydata= xsFNBEyAcmQBEADAAyH2xoTu7ppG5D3a8FMZEon74dCvc4+q1XA2J2tBy2pwaTqfhpxxdGA9 Jj50UJ3PD4bSUEgN8tLZ0san47l5XTAFLi2456ciSl5m8sKaHlGdt9XmAAtmXqeZVIYX/UFS 96fDzf4xhEmm/y7LbYEPQdUdxu47xA5KhTYp5bltF3WYDz1Ygd7gx07Auwp7iw7eNvnoDTAl KAl8KYDZzbDNCQGEbpY3efZIvPdeI+FWQN4W+kghy+P6au6PrIIhYraeua7XDdb2LS1en3Ss mE3QjqfRqI/A2ue8JMwsvXe/WK38Ezs6x74iTaqI3AFH6ilAhDqpMnd/msSESNFt76DiO1ZK QMr9amVPknjfPmJISqdhgB1DlEdw34sROf6V8mZw0xfqT6PKE46LcFefzs0kbg4GORf8vjG2 Sf1tk5eU8MBiyN/bZ03bKNjNYMpODDQQwuP84kYLkX2wBxxMAhBxwbDVZudzxDZJ1C2VXujC OJVxq2kljBM9ETYuUGqd75AW2LXrLw6+MuIsHFAYAgRr7+KcwDgBAfwhPBYX34nSSiHlmLC+ KaHLeCLF5ZI2vKm3HEeCTtlOg7xZEONgwzL+fdKo+D6SoC8RRxJKs8a3sVfI4t6CnrQzvJbB n6gxdgCu5i29J1QCYrCYvql2UyFPAK+do99/1jOXT4m2836j1wARAQABzSBQYXVsIEVnZ2Vy dCA8ZWdnZXJ0QGNzLnVjbGEuZWR1PsLBfgQTAQIAKAUCTIByZAIbAwUJEswDAAYLCQgHAwIG FQgCCQoLBBYCAwECHgECF4AACgkQ7ZfpDmKqfjRRGw/+Ij03dhYfYl/gXVRiuzV1gGrbHk+t nfrI/C7fAeoFzQ5tVgVinShaPkZo0HTPf18x6IDEdAiO8Mqo1yp0CtHmzGMCJ50o4Grgfjlr 6g/+vtEOKbhleszN2XpJvpwM2QgGvn/laTLUu8PH9aRWTs7qJJZKKKAb4sxYc92FehPu6FOD 0dDiyhlDAq4lOV2mdBpzQbiojoZzQLMQwjpgCTK2572eK9EOEQySUThXrSIz6ASenp4NYTFH s9tuJQvXk9gZDdPSl3bp+47dGxlxEWLpBIM7zIONw4ks4azgT8nvDZxA5IZHtvqBlJLBObYY 0Le61Wp0y3TlBDh2qdK8eYL426W4scEMSuig5gb8OAtQiBW6k2sGUxxeiv8ovWu8YAZgKJfu oWI+uRnMEddruY8JsoM54KaKvZikkKs2bg1ndtLVzHpJ6qFZC7QVjeHUh6/BmgvdjWPZYFTt N+KA9CWX3GQKKgN3uu988yznD7LnB98T4EUH1HA/GnfBqMV1gpzTvPc4qVQinCmIkEFp83zl +G5fCjJJ3W7ivzCnYo4KhKLpFUm97okTKR2LW3xZzEW4cLSWO387MTK3CzDOx5qe6s4a91Zu ZM/j/TQdTLDaqNn83kA4Hq48UHXYxcIh+Nd8k/3w6lFuoK0wrOFiywjLx+0ur5jmmbecBGHc 1xdhAFHOwU0ETIByZAEQAKaF678T9wyH4wjTrV1Pz3cDEoSnV/0ZUrOT37p1dcGyj/IXq1x6 70HRVahAmk0sZpYc25PF9D5GPYHFWlNjuPU96rDndXB3hedmBRhLdC4bAXjI4DV+bmdVe+q/ IMnlZRaVlm9EiMCVAR6w13sReu7qXkW9r3RwY2AzXskp/tAe4BRKr1Zmbvi2nbnQ6epEC42r Rbx0B1EhjbIQZ5JHGk24iPT7LdBgnNmos5wYjzwNlkMQD5T0Ydzhk7J+UxwA5m46mOhRDC2r FV/A0gm5TLy8DXjv/Esc4gYnYai6SQqnUEVh5LuV8YCJBnijs+Tiw71x1icmn6xGI45EugJO gec+rLypYgpVp4x0HI5T88qBRYCkxH3Kg8Qo+EWNA9A4LRQ9DX8njona0gf0s03tocK8kBN6 6UoqqPtHBnc4eMgBymCflK12eKfd2YYxnyg9cZazWA5VslvTxpm76hbg5oiAEH/Vg/8MxHyA nPhfrgwyPrmJEcVBafdspJnYQxBYNco2LFPIhlOvWh8r4at+s+M3Lb26oUTczlgdW1Sf3SDA 77BMRnF0FQyE+7AzV79MBN4ykiqaezQxtaF1Fy/tvkhffSo8u+dwG0EgJh+te38gTcISVr0G IPplLz6YhjrbHrPRF1CN5UuL9DBGjxuN35RLNVEfta6RUFlR6NctTjvrABEBAAHCwWUEGAEC AA8FAkyAcmQCGwwFCRLMAwAACgkQ7ZfpDmKqfjSrHA/+KzAKvTxRhA9MWNLxIyJ7S5uJ16gs T3oCjZrBKGEhKMOGX4O0GA6VOEryO7QRCCYah3oxSG38IAnNeiwJXgU9Bzkk85UGbPEd7HGF /VSeHCQwWou6jqUDTSDvn9YhNTdG0KXPM74aC+xr2Zow1O2mhXihgWKD0Dw+0LYPnUOsQ0KO FxHXXYHmRrS1OZPU59BLvc+TRhIhafSHKLwbXK+6ckkxBx6h8z5ccpG0Qs4bFhdFYnFrEieD LoGmnE2YLhdV6swJ9VNCS6pLiEohT3fm7aXm15tZOIyzMZhHRSAPblXxQ0ZSWjq8oRrcYNFx c4W1URpAkBCOYJoXvQfD5L3lqAl8TCqDUzYxhH/tJhbDdHrqHH767jaDaTB1+Talp/2AMKwc XNOdiklGxbmHVG6YGl6g8Lrbsu9NZEI4yLlHzuikthJWgz+3vZhVGyNlt+HNIoF6CjDL2omu 5cEq4RDHM44QqPk6l7O0pUvN1mT4B+S1b08RKpqm/ff015E37HNV/piIvJlxGAYz8PSfuGCB 1thMYqlmgdhd9/BabGFbGGYHA6U4/T5zqU+f6xHy1SsAQZ1MSKlLwekBIT+4/cLRGqCHjnV0 q5H/T6a7t5mPkbzSrOLSo4puj+IToNjYyYIDBWzhlA19avOa+rvUjmHtD3sFN7cXWtkGoi8b uNcby4U= Organization: UCLA Computer Science Department Message-ID: <d569eb22-18f3-8298-51ed-22312fdbcdf1@HIDDEN> Date: Tue, 23 Oct 2018 16:44:47 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <2134585113.328113294.1540287973106.JavaMail.zimbra@HIDDEN> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 33125 Cc: Francky Leyn <Francky@HIDDEN> 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: -3.3 (---) On 10/23/18 2:46 AM, francky.leyn@HIDDEN wrote: > In this mail I make a plei for a more protective manner for the coreutils. Sorry about the loss of your data, but at this point the behavior of mv etc. is relied on by so many people and scripts that we can't realistically make the change you requested. You can, if you like, create a shell script like this: #!/bin/sh exec /usr/bin/mv -i "$@" call this script "mv", and then put it into your PATH; that way, the 'mv' command will behave the way you like, for your usage.
bug-coreutils@HIDDEN
:bug#33125
; Package coreutils
.
Full text available.Received: (at 33125) by debbugs.gnu.org; 23 Oct 2018 22:51:04 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 23 18:51:04 2018 Received: from localhost ([127.0.0.1]:38807 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gF5Vw-0005O8-Bw for submit <at> debbugs.gnu.org; Tue, 23 Oct 2018 18:51:04 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:53433) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <mail@HIDDEN>) id 1gF5Vv-0005N9-4m for 33125 <at> debbugs.gnu.org; Tue, 23 Oct 2018 18:51:03 -0400 Received: from [192.168.101.10] ([91.12.166.119]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MowX2-1fp5hR3MlS-00qTpf; Wed, 24 Oct 2018 00:50:55 +0200 Received: from [192.168.101.10] ([91.12.166.119]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MowX2-1fp5hR3MlS-00qTpf; Wed, 24 Oct 2018 00:50:55 +0200 Subject: Re: bug#33125: the destrustive and non predent behavior of ALL UNIX commands To: francky.leyn@HIDDEN, 33125 <at> debbugs.gnu.org References: <2134585113.328113294.1540287973106.JavaMail.zimbra@HIDDEN> From: Bernhard Voelker <mail@HIDDEN> Openpgp: preference=signencrypt Autocrypt: addr=mail@HIDDEN; prefer-encrypt=mutual; keydata= xsBNBFPirzMBCACyzYldTjQ4ufFOkByY5Nn5USb5GFoL48nWBwNHjd9KUbtRRNlQiPNKd6hK Gvd3BGi5aoFKA4ytfRk6jbAbW3jVb3R8wYaV08mOy4KVEKxqN4bxsXlMjNChXVR+rtKDmfI+ oPTL+cPH2X6gW4W02IRbVw0uUhNm6zEedC/gNrY/mTlf1enZ46jxZ7BTUZaG+kx38UMISIMB zSzLRtdkwgmHj4jS3p1fF2cwRqLclIfMjKGpbNFPEXeXKWrCLcqHw78795eAR9q0YvrDkfIn GdDBwfb3VM4NdulwIFzvYZMSXvSbbyPLB5YkHU5aAWQHUse4WlfT5ccDpbzUYldRAvF9ABEB AAHNK0Jlcm5oYXJkIFZvZWxrZXIgPG1haWxAYmVybmhhcmQtdm9lbGtlci5kZT7CwHkEEwEC ACMFAlPirzMCGwMHCwkIBwMCAQYVCAIJCgsEFgIDAQIeAQIXgAAKCRBGUC73lpFxle5wCACC dbs0QaJ0vR3Sff2cKdTk41rUq3YfWngsR///IOU0C5DdkePmCnJE/lUsUy0LRTxcUDLxQR+x QHU8ssRT0JUO9726dI3miy36UdsgmBYaOtLvQcidGmW1R7o0PYYf04+TFtyqKgngOUBPpMgR 6o4UsQxy/OD4bN1WDqOgIjL+D/qJpkKmgp6L6+hhaBCpiOFKRmmV7YyQ3SqVlfQNiHs5ZtkR nXpIjgZARV+GllKucI17bO0CGmTJZ1tstVy0+W3DQT1lbBkTTc++5LONM99D3jjn23l1ocOp folR53F7I4cb2RNfT23v1I59RH37lB9wMOqrKj0UjYAC2YoPGQ3BzsBNBFPirzMBCADXLWWp QihBldY6reca8ZKdc3T9qXEOa3akE3DWKztIBmNJhtYOjmpLYajQTkGa7UoJTnbmZE2Rn6ZE oNnvb0gcFNAIcY95KOI+bjOR8HEgh4cx2REXh6L6olIgyXqt/KFusE4wtVZAFxZl+30HzN6n D+1HvrjXxPJRX6MsIYOYyyX9/6OofwJK6QHODYGp8WL2olHDnmsXg4AT6Wlr7qKpKrQELlcF R4xkvdmgL/Ghw/tK0yJTxMIcewCCZWLPOXRmFRbvAadZWPAgVsJ63siNyUlVnVMSzDgTJl+s l/DMabXpqrJQx3/1Yy6mTaDs3XZT/wmBKaTLXx/LByaPxQQ7ABEBAAHCwF8EGAECAAkFAlPi rzMCGwwACgkQRlAu95aRcZWVPwgAqZT6iTXkoP37wYb41323RzhBcJ8JSk4cyBDBUXX0lMrM 3qhiClKG7phpxVdu817Gwc6Hsecg7FfjQAV8MHQ0ZFeEFdk3b2rKBqfsStc+h49/xF3Fb+if CzR9qeQF82fMSxkg18++7hMcHCMO/hPZ/Q0xRi+lrSr2QKDJQuLzSyVU14TxrCkevZjEhtma VNvcJlJzCbiBXee9Fpc5jITUXPFG8E8dxqo1n+duOyIMgozrAnzP7X5V/Ob/Ozf/aGGX9+Jd inyfCX18nWcHALKMU/36Eua/ylalf/2c2YkBp9KCLVmGgPkUgW52EeRPgroIsiwu+rwCSV6Z UyCJ+OymCg== Message-ID: <7edd3e1a-70b7-540b-2bab-340c52e46f0c@HIDDEN> Date: Wed, 24 Oct 2018 00:50:54 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <2134585113.328113294.1540287973106.JavaMail.zimbra@HIDDEN> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:fu5kmjSA1LGhpaf39UH8LYeMjUFY8IhB/DZ05UD1nwjeHtzhr99 m4U602Q/UHRuNRLc3mR4h8bVYGpoE2l00/UvlK69ZpY8MuIYbFzf4aDTiX60XpgAjfVdQ4t L05wrzgqcHgI9FTsIOzC2fMySpuG6dvWS+EwOALYuMgYz0dwwnzyi+mIIeHulhT/ES8adAo q+1CxTTgol5htV+GQupRA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V01:K0:t4N1vnkgpGU=:0EgG+XluU+8jcPm9zVp5rT jhrJ0CU2gc+ph4FpfFDVaJ7KdnYhFCzihTYjdAZXsP1hAf+ReD0FQOfOPNYO2Q6lFjfgc1I6z /X5HGWdH8L8hQ+9gKuBjKtQ6vyEhZUi4CCD0h3/nm/jDkvlgDIkareeS1hwfYMeMos1UbsWDC 3LtESspKoYNxFSztHKdQ4PhdEy1n/83zrFHJD/3WtaRYXpcEfal+8BpPV5euEdl02JanXB/pU hyoXBNuXgYRSOW8IrY6ZsYDmEnILqdemqyNnRUHrI6l2yfE7gkzCatyblJ3J4mq1A4WnxWds1 Dv5NkaKfK5JeKLDa9KipXTYrcOe93gJd37gVJbwHOHrEKMUyU13LExVf3cGDphgtbUqfo52CD 85RDey681oID+fIpUJ4EkfCr1QaqxM+oCYmzUDSFbnsOvrTeXJff07KR613u0Ck1XulUczgoq YJlUcjcKd0Vnlnmgz+LRBU2bnOKNnDVtkZXxnTmA35CQrjMujYNdEVcosbBEXfChvt/5SPBSd ftiVyw6ydnj/9EvmVzDsxN8gPkMt368LlVQqyzvLgh6kS53s7szTkh7cghlZp6p1BnGAocbGZ v1uda2IDCFKTMRatlUadM34fuo1D68bzbo9/WaaB4Qgzqlg1SH1lB0ZJ9+uLXz6AivRmjcw8E 2h/bZL9EOniwTOracS/YPv1tAd5HX9+s4jb4qzYkiqn8oMKoJEUH5gJjRVMkSIP0mQkUgjnNx ODLY2A7Lzg2avQzO X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 33125 Cc: Francky Leyn <Francky@HIDDEN> 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: -1.0 (-) On 10/23/18 11:46 AM, francky.leyn@HIDDEN wrote: > Hello, > > I just destroyed 3 days of scaninng work. This was the command: > > ls p.*.png | sort -t. -k2 -n | gawk '{ printf("mv '\''%s'\'' '\''p. %d.png'\''\n", $0, NR+6) }' | bash [ mailto:bug-coreutils@HIDDEN ] > > The problem was that the sequence of mv command resulted in one .png file: > > mv 'p. 123.png' 'p. 124.png' > mv 'p. 124.png' 'p. 125.png' > mv 'p. 126.png' 'p. 127.png' > > The result is that you end up with one file: 'p. 127.png'. outch, sorry for your loss. > When you look at the commands (without the trailing bash), you think it's ok because you think declaratively. However, this thing works imperative/procedural. As you said, the problem originated from a logic error in the counting for the new names of the files. Didn't you run that without the executing "| bash" first? > I would not have lost all my files if I would have used "mv -i": > > ls p.*.png | sort -t. -k2 -n | gawk '{ printf("mv -i '\''%s'\'' '\''p. %d.png'\''\n", $0, NR+6) }' | bash No, because once you would have confirmed the -i prompt, the same would have happened. The point is to recognize that file 123 is first renamed to 124, then 124 is renamed to 125, and so on. > ============================== > > With the rm command it is the same. It deletes/removes, and the file is gone forever. No tracing back option like a recycle bin under Windows. > > In this mail I make a plei for a more protective manner for the coreutils. The "-i" options should dissapear altoghether and being the default. Instead there should be options to force execution without confirmation. The GNU coreutils are a low-level tool set which adheres to certain standards and provides certain compatibility with other implementations. We cannot (and therefore will not) simply change such behavior. Furthermore, -i is not effective in scripts without stdin (in this case stdin came from the pipe). Finally, as written above, -i would *not* have helped you unless you would have seen the logical mistake. As such, I'm afraid we can not do something at this point. > Also: > > > * There should be a recycle bin for rm. > * There should be a call back facility to undo the latest action. In Windowds this is ctrl z. Different topic. I think this has been already discussed. Again, the GNU coreutils as command line tools are quite low-level, and things like a recycle bin belongs to desktop apps. I'd compare it with using a sharp Japanese kitchen knife: of course one can cut oneself into the fingers, but if one uses it as it's designed for, then it can do things one can't with a blunt, old steel knife (although the latter may or may not have its merits regarding other aspects). Have a nice day, Berny
bug-coreutils@HIDDEN
:bug#33125
; Package coreutils
.
Full text available.Received: (at submit) by debbugs.gnu.org; 23 Oct 2018 09:46:50 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 23 05:46:50 2018 Received: from localhost ([127.0.0.1]:37067 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gEtH0-0005ZR-0x for submit <at> debbugs.gnu.org; Tue, 23 Oct 2018 05:46:50 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56246) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <francky.leyn@HIDDEN>) id 1gEtGx-0005ZF-WE for submit <at> debbugs.gnu.org; Tue, 23 Oct 2018 05:46:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <francky.leyn@HIDDEN>) id 1gEtGr-0004Zp-36 for submit <at> debbugs.gnu.org; Tue, 23 Oct 2018 05:46:42 -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 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:47926) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <francky.leyn@HIDDEN>) id 1gEtGo-0004XN-3b for submit <at> debbugs.gnu.org; Tue, 23 Oct 2018 05:46:40 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37595) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <francky.leyn@HIDDEN>) id 1gEtGn-0006uO-4C for bug-coreutils@HIDDEN; Tue, 23 Oct 2018 05:46:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <francky.leyn@HIDDEN>) id 1gEtGh-0004SM-BG for bug-coreutils@HIDDEN; Tue, 23 Oct 2018 05:46:35 -0400 Received: from laurent.telenet-ops.be ([2a02:1800:110:4::f00:19]:50698) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <francky.leyn@HIDDEN>) id 1gEtGW-0004Hw-Ae for bug-coreutils@HIDDEN; Tue, 23 Oct 2018 05:46:22 -0400 Received: from zcsnocm127.telenet-ops.be ([IPv6:2a02:1800:120:86::f00:7f]) by laurent.telenet-ops.be with bizsmtp id qxmD1y00g2v8kzS01xmDzo; Tue, 23 Oct 2018 11:46:14 +0200 Date: Tue, 23 Oct 2018 11:46:13 +0200 (CEST) From: francky.leyn@HIDDEN To: bug-coreutils@HIDDEN Message-ID: <2134585113.328113294.1540287973106.JavaMail.zimbra@HIDDEN> Subject: the destrustive and non predent behavior of ALL UNIX commands MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_24c703b7-2c18-4a15-80ef-1880550c9712" X-Originating-IP: [2a02:1811:c410:2d00:c09f:442e:41eb:a0d1] Thread-Index: qXX6Jtv9V+qn4DLNrNMvgDUoMxo8bw== Thread-Topic: the destrustive and non predent behavior of ALL UNIX commands X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit Cc: Francky Leyn <Francky@HIDDEN> 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: -5.0 (-----) --=_24c703b7-2c18-4a15-80ef-1880550c9712 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Hello, I just destroyed 3 days of scaninng work. This was the command: ls p.*.png | sort -t. -k2 -n | gawk '{ printf("mv '\''%s'\'' '\''p. %d.png'\''\n", $0, NR+6) }' | bash [ mailto:bug-coreutils@HIDDEN ] The problem was that the sequence of mv command resulted in one .png file: mv 'p. 123.png' 'p. 124.png' mv 'p. 124.png' 'p. 125.png' mv 'p. 126.png' 'p. 127.png' The result is that you end up with one file: 'p. 127.png'. When you look at the commands (without the trailing bash), you think it's ok because you think declaratively. However, this thing works imperative/procedural. I would not have lost all my files if I would have used "mv -i": ls p.*.png | sort -t. -k2 -n | gawk '{ printf("mv -i '\''%s'\'' '\''p. %d.png'\''\n", $0, NR+6) }' | bash ============================== With the rm command it is the same. It deletes/removes, and the file is gone forever. No tracing back option like a recycle bin under Windows. In this mail I make a plei for a more protective manner for the coreutils. The "-i" options should dissapear altoghether and being the default. Instead there should be options to force execution without confirmation. Also: * There should be a recycle bin for rm. * There should be a call back facility to undo the latest action. In Windowds this is ctrl z. Ok, this is what I had to say. Hoping it will result in some action. Regards, Francky --=_24c703b7-2c18-4a15-80ef-1880550c9712 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html><body><div style=3D"font-family: Courier; font-size: 10pt; color: #00= 0000"><div><span style=3D"font-family: arial, helvetica, sans-serif; font-s= ize: 12pt;" data-mce-style=3D"font-family: arial, helvetica, sans-serif; fo= nt-size: 12pt;"> <!--StartFragment--><span style=3D"color: rgb(0, 0, 0); fo= nt-style: normal; font-variant-ligatures: normal; font-variant-caps: normal= ; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; = text-indent: 0px; text-transform: none; white-space: normal; widows: 2; wor= d-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, = 255, 255); text-decoration-style: initial; text-decoration-color: initial; = float: none; display: inline !important;" data-mce-style=3D"color: #000000;= font-style: normal; font-variant-ligatures: normal; font-variant-caps: nor= mal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: star= t; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; = word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #fffff= f; text-decoration-style: initial; text-decoration-color: initial; float: n= one; display: inline !important;"> Hello,</span></span></div><div><spa= n face=3D"Times New Roman" size=3D"3" data-mce-style=3D"font-family: arial,= helvetica, sans-serif; font-size: 12pt;" style=3D"font-family: arial, helv= etica, sans-serif; font-size: 12pt;"><br data-mce-bogus=3D"1"></span></div>= <div><span face=3D"Times New Roman" size=3D"3" data-mce-style=3D"font-famil= y: arial, helvetica, sans-serif; font-size: 12pt;" style=3D"font-family: ar= ial, helvetica, sans-serif; font-size: 12pt;">I just destroyed 3 days of sc= aninng work. This was the command:</span></div><div><span face=3D"Times New= Roman" size=3D"3" data-mce-style=3D"font-family: arial, helvetica, sans-se= rif; font-size: 12pt;" style=3D"font-family: arial, helvetica, sans-serif; = font-size: 12pt;"><br data-mce-bogus=3D"1"></span></div><div><span face=3D"= Times New Roman" size=3D"3" data-mce-style=3D"font-family: arial, helvetica= , sans-serif; font-size: 12pt;" style=3D"font-family: arial, helvetica, san= s-serif; font-size: 12pt;"><span style=3D"font-family: "courier new&qu= ot;, courier, monaco, monospace, sans-serif;" data-mce-style=3D"font-family= : 'courier new', courier, monaco, monospace, sans-serif;"> ls p.*.png | sor= t -t. -k2 -n | gawk '{ printf("mv '\''%s'\'' '\''p. %d.png'\''\n", $0, NR+6= ) }' | bash</span><a href=3D"mailto:bug-coreutils@HIDDEN" style=3D"orphans= : 2; text-align: start; text-indent: 0px; widows: 2; background-color: rgb(= 255, 255, 255);" data-mce-href=3D"mailto:bug-coreutils@HIDDEN" data-mce-st= yle=3D"font-family: 'Times New Roman'; font-size: medium; font-style: norma= l; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: = 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0p= x; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;= -webkit-text-stroke-width: 0px; background-color: #ffffff;"></a></span></d= iv><div><span style=3D"font-size: 12pt; font-family: arial, helvetica, sans= -serif;" data-mce-style=3D"font-size: 12pt; font-family: arial, helvetica, = sans-serif;"><br></span></div><div><span style=3D"font-size: 12pt; font-fam= ily: arial, helvetica, sans-serif;" data-mce-style=3D"font-size: 12pt; font= -family: arial, helvetica, sans-serif;">The problem was that the sequence o= f mv command resulted in one .png file:</span></div><div><span style=3D"fon= t-size: 12pt; font-family: arial, helvetica, sans-serif;" data-mce-style=3D= "font-size: 12pt; font-family: arial, helvetica, sans-serif;"><br data-mce-= bogus=3D"1"></span></div><div><span style=3D"font-size: 12pt; font-family: = "courier new", courier, monaco, monospace, sans-serif;" data-mce-= style=3D"font-size: 12pt; font-family: 'courier new', courier, monaco, mono= space, sans-serif;">mv 'p. 123.png' 'p. 124.png'</span></div><div><span sty= le=3D"font-size: 12pt; font-family: "courier new", courier, monac= o, monospace, sans-serif;" data-mce-style=3D"font-size: 12pt; font-family: = 'courier new', courier, monaco, monospace, sans-serif;"> <!--StartFragment-= -></span><div style=3D"color: #000000; font-family: Courier; font-size: 13.= 3333px; font-style: normal; font-variant-ligatures: normal; font-variant-ca= ps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-alig= n: start; text-indent: 0px; text-transform: none; white-space: normal; wido= ws: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-s= tyle: initial; text-decoration-color: initial;" data-mce-style=3D"color: #0= 00000; font-family: Courier; font-size: 13.3333px; font-style: normal; font= -variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; le= tter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text= -transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webki= t-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-c= olor: initial;"><span style=3D"font-size: 12pt; font-family: "courier = new", courier, monaco, monospace, sans-serif;" data-mce-style=3D"font-= size: 12pt; font-family: 'courier new', courier, monaco, monospace, sans-se= rif;">mv 'p. 124.png' 'p. 125.png'</span></div><span style=3D"font-size: 12= pt; font-family: "courier new", courier, monaco, monospace, sans-= serif;" data-mce-style=3D"font-size: 12pt; font-family: 'courier new', cour= ier, monaco, monospace, sans-serif;"><!--EndFragment--> <!--StartFragment--= ></span><div style=3D"color: #000000; font-family: Courier; font-size: 13.3= 333px; font-style: normal; font-variant-ligatures: normal; font-variant-cap= s: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align= : start; text-indent: 0px; text-transform: none; white-space: normal; widow= s: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-st= yle: initial; text-decoration-color: initial;" data-mce-style=3D"color: #00= 0000; font-family: Courier; font-size: 13.3333px; font-style: normal; font-= variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; let= ter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-= transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit= -text-stroke-width: 0px; text-decoration-style: initial; text-decoration-co= lor: initial;"><span style=3D"font-size: 12pt; font-family: "courier n= ew", courier, monaco, monospace, sans-serif;" data-mce-style=3D"font-s= ize: 12pt; font-family: 'courier new', courier, monaco, monospace, sans-ser= if;">mv 'p. 126.png' 'p. 127.png'</span></div><div style=3D"color: #000000;= font-family: Courier; font-size: 13.3333px; font-style: normal; font-varia= nt-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-s= pacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-trans= form: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text= -stroke-width: 0px; text-decoration-style: initial; text-decoration-color: = initial;" data-mce-style=3D"color: #000000; font-family: Courier; font-size= : 13.3333px; font-style: normal; font-variant-ligatures: normal; font-varia= nt-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text= -align: start; text-indent: 0px; text-transform: none; white-space: normal;= widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decorat= ion-style: initial; text-decoration-color: initial;"><span style=3D"font-si= ze: 12pt; font-family: arial, helvetica, sans-serif;" data-mce-style=3D"fon= t-size: 12pt; font-family: arial, helvetica, sans-serif;"></span><br></div>= <div style=3D"color: #000000; font-family: Courier; font-size: 13.3333px; f= ont-style: normal; font-variant-ligatures: normal; font-variant-caps: norma= l; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start;= text-indent: 0px; text-transform: none; white-space: normal; widows: 2; wo= rd-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: ini= tial; text-decoration-color: initial;" data-mce-style=3D"color: #000000; fo= nt-family: Courier; font-size: 13.3333px; font-style: normal; font-variant-= ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spac= ing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transfor= m: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-st= roke-width: 0px; text-decoration-style: initial; text-decoration-color: ini= tial;"><span style=3D"font-size: 12pt; font-family: arial, helvetica, sans-= serif;" data-mce-style=3D"font-size: 12pt; font-family: arial, helvetica, s= ans-serif;">The result is that you end up with one file: 'p. 127.png'.</spa= n></div><div style=3D"color: #000000; font-family: Courier; font-size: 13.3= 333px; font-style: normal; font-variant-ligatures: normal; font-variant-cap= s: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align= : start; text-indent: 0px; text-transform: none; white-space: normal; widow= s: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-st= yle: initial; text-decoration-color: initial;" data-mce-style=3D"color: #00= 0000; font-family: Courier; font-size: 13.3333px; font-style: normal; font-= variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; let= ter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-= transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit= -text-stroke-width: 0px; text-decoration-style: initial; text-decoration-co= lor: initial;"><span style=3D"font-size: 12pt; font-family: arial, helvetic= a, sans-serif;" data-mce-style=3D"font-size: 12pt; font-family: arial, helv= etica, sans-serif;"></span><br></div><div style=3D"color: #000000; font-fam= ily: Courier; font-size: 13.3333px; font-style: normal; font-variant-ligatu= res: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: n= ormal; orphans: 2; text-align: start; text-indent: 0px; text-transform: non= e; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-w= idth: 0px; text-decoration-style: initial; text-decoration-color: initial;"= data-mce-style=3D"color: #000000; font-family: Courier; font-size: 13.3333= px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: = normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: s= tart; text-indent: 0px; text-transform: none; white-space: normal; widows: = 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style= : initial; text-decoration-color: initial;"><span style=3D"font-size: 12pt;= font-family: arial, helvetica, sans-serif;" data-mce-style=3D"font-size: 1= 2pt; font-family: arial, helvetica, sans-serif;">When you look at the comma= nds (without the trailing bash), you think it's ok because you think declar= atively. However, this thing works imperative/procedural.</span></div><div = style=3D"color: #000000; font-family: Courier; font-size: 13.3333px; font-s= tyle: normal; font-variant-ligatures: normal; font-variant-caps: normal; fo= nt-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text= -indent: 0px; text-transform: none; white-space: normal; widows: 2; word-sp= acing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial;= text-decoration-color: initial;" data-mce-style=3D"color: #000000; font-fa= mily: Courier; font-size: 13.3333px; font-style: normal; font-variant-ligat= ures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: = normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: no= ne; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-= width: 0px; text-decoration-style: initial; text-decoration-color: initial;= "><span style=3D"font-size: 12pt; font-family: arial, helvetica, sans-serif= ;" data-mce-style=3D"font-size: 12pt; font-family: arial, helvetica, sans-s= erif;"></span><br></div><div style=3D"color: #000000; font-family: Courier;= font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; = font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphan= s: 2; text-align: start; text-indent: 0px; text-transform: none; white-spac= e: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; te= xt-decoration-style: initial; text-decoration-color: initial;" data-mce-sty= le=3D"color: #000000; font-family: Courier; font-size: 13.3333px; font-styl= e: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-= weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-in= dent: 0px; text-transform: none; white-space: normal; widows: 2; word-spaci= ng: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; te= xt-decoration-color: initial;"><span style=3D"font-size: 12pt; font-family:= arial, helvetica, sans-serif;" data-mce-style=3D"font-size: 12pt; font-fam= ily: arial, helvetica, sans-serif;">I would not have lost all my files if I= would have used "mv -i":</span></div><div style=3D"color: #000000; font-fa= mily: Courier; font-size: 13.3333px; font-style: normal; font-variant-ligat= ures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: = normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: no= ne; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-= width: 0px; text-decoration-style: initial; text-decoration-color: initial;= " data-mce-style=3D"color: #000000; font-family: Courier; font-size: 13.333= 3px; font-style: normal; font-variant-ligatures: normal; font-variant-caps:= normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: = start; text-indent: 0px; text-transform: none; white-space: normal; widows:= 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-styl= e: initial; text-decoration-color: initial;"><span style=3D"font-size: 12pt= ; font-family: arial, helvetica, sans-serif;" data-mce-style=3D"font-size: = 12pt; font-family: arial, helvetica, sans-serif;"></span><br></div><div sty= le=3D"color: rgb(0, 0, 0); font-style: normal; font-variant-ligatures: norm= al; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; or= phans: 2; text-align: start; text-indent: 0px; text-transform: none; white-= space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px= ; text-decoration-style: initial; text-decoration-color: initial;" data-mce= -style=3D"color: #000000; font-family: Courier; font-size: 13.3333px; font-= style: normal; font-variant-ligatures: normal; font-variant-caps: normal; f= ont-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; tex= t-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-s= pacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial= ; text-decoration-color: initial;"><span style=3D"font-family: arial, helve= tica, sans-serif; font-size: 12pt;" data-mce-style=3D"font-size: 12pt; font= -family: arial, helvetica, sans-serif;"> <!--StartFragment--><span style=3D= "color: rgb(0, 0, 0); font-style: normal; font-variant-ligatures: normal; f= ont-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans= : 2; text-align: start; text-indent: 0px; text-transform: none; white-space= : normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; bac= kground-color: rgb(255, 255, 255); text-decoration-style: initial; text-dec= oration-color: initial; float: none; display: inline !important; font-famil= y: "courier new", courier, monaco, monospace, sans-serif;" data-m= ce-style=3D"color: #000000; font-style: normal; font-variant-ligatures: nor= mal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; o= rphans: 2; text-align: start; text-indent: 0px; text-transform: none; white= -space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0p= x; background-color: #ffffff; text-decoration-style: initial; text-decorati= on-color: initial; float: none; display: inline !important; font-family: 'c= ourier new', courier, monaco, monospace, sans-serif;">ls p.*.png | sort -t.= -k2 -n | gawk '{ printf("mv -i '\''%s'\'' '\''p. %d.png'\''\n", $0, = NR+6) }' | bash</span><!--EndFragment--></span><div style=3D"font-family: C= ourier; font-size: 13.3333px; clear: both;" data-mce-style=3D"clear: both;"= ><br></div><div style=3D"font-family: Courier; font-size: 13.3333px; clear:= both;" data-mce-style=3D"clear: both;"><span style=3D"font-family: arial, = helvetica, sans-serif; font-size: 12pt;" data-mce-style=3D"font-family: ari= al, helvetica, sans-serif; font-size: 12pt;">=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</span></div><d= iv style=3D"font-family: Courier; font-size: 13.3333px; clear: both;" data-= mce-style=3D"clear: both;"><br data-mce-bogus=3D"1"></div><div style=3D"fon= t-family: Courier; font-size: 13.3333px; clear: both;" data-mce-style=3D"cl= ear: both;"><span style=3D"font-family: arial, helvetica, sans-serif; font-= size: 12pt;" data-mce-style=3D"font-family: arial, helvetica, sans-serif; f= ont-size: 12pt;">With the rm command it is the same. It deletes/removes, an= d the file is gone forever. No tracing back option like a recycle bin under= Windows. </span></div><div style=3D"font-family: Courier; font-size: = 13.3333px; clear: both;" data-mce-style=3D"clear: both;"><br data-mce-bogus= =3D"1"></div><div style=3D"clear: both;" data-mce-style=3D"clear: both;"><f= ont face=3D"arial, helvetica, sans-serif"><span style=3D"font-size: 16px;">= In this mail I make a plei for a more protective manner for the coreutils. = The "-i" options should dissapear altoghether and being the default. Instea= d there should be options to force execution without confirmation.</span></= font></div><div style=3D"clear: both;" data-mce-style=3D"clear: both;"><fon= t face=3D"arial, helvetica, sans-serif"><span style=3D"font-size: 16px;"><b= r data-mce-bogus=3D"1"></span></font></div><div style=3D"clear: both;" data= -mce-style=3D"clear: both;"><font face=3D"arial, helvetica, sans-serif"><sp= an style=3D"font-size: 16px;">Also:</span></font></div><ul><li data-mce-sty= le=3D"clear: both;" style=3D"clear: both;"><font face=3D"arial, helvetica, = sans-serif"><span style=3D"font-size: 16px;">There should be a recycle bin = for rm.</span></font></li><li data-mce-style=3D"clear: both;" style=3D"clea= r: both;"><font face=3D"arial, helvetica, sans-serif"><span style=3D"font-s= ize: 16px;">There should be a call back facility to undo the latest action.= In Windowds this is ctrl z.</span></font></li></ul><div><font face=3D"aria= l, helvetica, sans-serif"><span style=3D"font-size: 16px;">Ok, this is what= I had to say. Hoping it will result in some action.</span></font></div><di= v><font face=3D"arial, helvetica, sans-serif"><span style=3D"font-size: 16p= x;"><br data-mce-bogus=3D"1"></span></font></div><div><font face=3D"arial, = helvetica, sans-serif"><span style=3D"font-size: 16px;">Regards,</span></fo= nt></div><div><font face=3D"arial, helvetica, sans-serif"><span style=3D"fo= nt-size: 16px;"><br data-mce-bogus=3D"1"></span></font></div><div><font fac= e=3D"arial, helvetica, sans-serif"><span style=3D"font-size: 16px;">Francky= </span></font></div></div><span style=3D"font-size: 12pt; font-family: aria= l, helvetica, sans-serif;" data-mce-style=3D"font-size: 12pt; font-family: = arial, helvetica, sans-serif;"><!--EndFragment--> </span></div></div></body= ></html> --=_24c703b7-2c18-4a15-80ef-1880550c9712--
francky.leyn@HIDDEN
:bug-coreutils@HIDDEN
.
Full text available.bug-coreutils@HIDDEN
:bug#33125
; Package coreutils
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.