Liste des Groupes | Revenir à cu shell |
Il Sat, 11 Jan 2025 05:05:48 +0100, Janis Papanagnou ha scritto:
Does that effect - interaction of rm -i behavior with non-interactive
ksh, flushing the confirmation messages! - sound familiar to anybody?
>
(I get the same behavior with 'ksh 93u' and 'ksh 93u+m', BTW.)
Uhmmm... here it works. But maybe I'm missing something...
11:59:35<lem@biggy:/tmp/prova$ cat mioscript#!/bin/ksh
unset f_names
typeset -A f_names
f_names["file1"]=
f_names["file2"]=
f_names["file3 3"]=
echo "${!f_names[@]}"
rm -i "${!f_names[@]}"11:59:43<lem@biggy:/tmp/prova$ ./mioscriptfile1 file2 file3 3
rm: rimuovere file regolare vuoto 'file1'? n
rm: rimuovere file regolare vuoto 'file2'? n
rm: rimuovere file regolare vuoto 'file3 3'? n12:00:28<lem@biggy:/tmp/prova$ ksh ./mioscriptfile1 file2 file3 3
rm: rimuovere file regolare vuoto 'file1'? n
rm: rimuovere file regolare vuoto 'file2'? n
rm: rimuovere file regolare vuoto 'file3 3'? n12:00:38<lem@biggy:/tmp/prova$ ksh --versionversion sh (AT&T Research) 93u+m/1.0.8 2024-01-01
Les messages affichés proviennent d'usenet.