Date: Mon, 27 May 2013 21:42:35 +0200 From: rank1seeker@gmail.com To: hackers@freebsd.org Subject: /bin/sh => STDIN & functions, var scope messing Message-ID: <20130527.194235.693.1@DOMY-PC>
next in thread | raw e-mail | index | archive | help
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ć
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130527.194235.693.1>
