Sujet : Re: lastpipe (Was: Different variable assignments)
De : Lem (at) *nospam* none.invalid (Lem Novantotto)
Groupes : comp.unix.shellDate : 19. Oct 2024, 13:53:42
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vf0a4m$3rufd$1@dont-email.me>
References : 1 2 3 4 5
User-Agent : Pan/0.160 (Toresk; )
Il Sat, 19 Oct 2024 11:47:16 -0000 (UTC), Kenny McCormack ha scritto:
AFAICT, "lastpipe" (bash)
works in a script, but not interactively.
Uhm... I'm sorry, probably I do not get your point. It's a bash
shell option: you set it (or unset it), and then you go.
| $ set -m ; shopt -u lastpipe ; unset my
| $ echo ciao |read my ; echo $my
|
| $ set +m ; shopt -s lastpipe ; unset my
| $ echo ciao |read my ; echo $my
| ciao
-- Bye, Lem