emersion / mrsh

A minimal POSIX shell
MIT License
492 stars 35 forks source link

Function output cannot be redirected #196

Open subnut opened 2 years ago

subnut commented 2 years ago
$ hello() { HI=0xDEADBEEF; echo $HI; }
$ hello > /dev/null
0xDEADBEEF
$ exit

Expected output -

$ hello() { HI=0xDEADBEEF; echo $HI; }
$ hello > /dev/null
$ exit