Sujet : Re: Problem with 'rm -i' in ksh
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.unix.shellDate : 12. Jan 2025, 07:21:29
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vlvn1a$1206d$1@dont-email.me>
References : 1 2
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
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