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, 17:08:03
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vm0pd4$17ar8$1@dont-email.me>
References : 1 2 3 4 5 6
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 12.01.2025 16:39, Janis Papanagnou wrote:
On 12.01.2025 15:14, Kenny McCormack wrote:
In article <vm0ela$15i9h$1@dont-email.me>,
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:
...
It's called in a (ksh-)function within a structure like this
>
function f { ... rm ... }
p1 | p2 | while read ... do ... f ... done
f
>
When you are in a "... | while read" loop, the stuff inside the while loop
has stdin coming from the pipe.
BTW; there's two calls of 'f', one in the loop (without stdin),
the other outside (supposedly having stdin). - I wonder why the
latter also didn't work; it neither showed the flushed data nor
interrogated the interactive confirmation for the final data.
(Am I still missing something?)
Janis