9.1-RELEASE-p3 --------------- #!/bin/sh sh_f () { global_scope_var=7463457 } yes | sh_f echo "$global_scope_var" echo ' Now without /usr/bin/yes (maybe it is STDIN issue, instead) ?!? ' sh_f echo "$global_scope_var" --------------- Domagoj Smolčić