| Deutsch English Français Italiano |
|
<vlvn1a$1206d$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Janis Papanagnou <janis_papanagnou+ng@hotmail.com>
Newsgroups: comp.unix.shell
Subject: Re: Problem with 'rm -i' in ksh
Date: Sun, 12 Jan 2025 07:21:29 +0100
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <vlvn1a$1206d$1@dont-email.me>
References: <vlsqmt$fem4$1@dont-email.me>
<slrnvo4udu.a76.naddy@lorvorc.mips.inka.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 12 Jan 2025 07:21:46 +0100 (CET)
Injection-Info: dont-email.me; posting-host="48124128631fba90ea2113d9c43d2278";
logging-data="1114317"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/q8RimfCInLr0xTcTYPbJK"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:4wLNYhSAqg8gHX4NErK/NkE+brQ=
In-Reply-To: <slrnvo4udu.a76.naddy@lorvorc.mips.inka.de>
On 11.01.2025 15:01, Christian Weisgerber wrote:
> On 2025-01-11, Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:
>
>> rm -i "${!a_set[@]}"
>> =>
>> rm: remove regular file `rmd2'? rm: remove regular file `rmd4'? rm:
>> remove regular file `rmd9 2'? rm: remove regular file `rmd9 3'?
>
> Well, that's what you get when you redirect stdin to null:
>
> $ rm -i *
> remove a? n
> remove b? n
> remove c? n
> $ rm -i * </dev/null
> remove a? remove b? remove c? $
>
Yeah; only that I haven't any [explicit] redirection of stdin (let
alone a redirection to /dev/null).
But your suggestion reminds me to inspect the strace log; maybe I'll
find any hints on that...
Janis