Sujet : Re: Different variable assignments
De : naddy (at) *nospam* mips.inka.de (Christian Weisgerber)
Groupes : comp.unix.shellDate : 12. Oct 2024, 00:25:39
Autres entêtes
Message-ID : <slrnvgjcvj.2cra.naddy@lorvorc.mips.inka.de>
References : 1 2 3
User-Agent : slrn/1.0.3 (FreeBSD)
On 2024-10-11, Frank Winkler <
usenet@f.winkler-ka.de> wrote:
$ uname -sr | ( read var3; echo $var3 )
Darwin 24.0.0
$
>
... but it still doesn't solve the issue that I need the result to be
visible in the parent shell.
read var3 <<EOF
$(uname -sr)
EOF
echo "$var3"
-- Christian "naddy" Weisgerber naddy@mips.inka.de