[dywang@dywmac ~]$ myip=192.168.122.1 [dywang@dywmac ~]$ echo $myip 192.168.122.1 [dywang@dywmac ~]$ bash [dywang@dywmac ~]$ echo $myip [dywang@dywmac ~]$ exit exit
[dywang@dywmac ~]$ export declare -x CVS_RSH="ssh" declare -x G_BROKEN_FILENAMES="1" declare -x HISTCONTROL="ignoredups" declare -x HISTSIZE="1000" declare -x HOME="/home/dywang" declare -x HOSTNAME="dywmac" declare -x LANG="en_US.UTF-8" declare -x LESSOPEN="||/usr/bin/lesspipe.sh %s" declare -x LOGNAME="dywang" declare -x LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:... declare -x MAIL="/var/spool/mail/dywang" declare -x OLDPWD declare -x /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin" declare -x PWD="/home/dywang" declare -x SELINUX_LEVEL_REQUESTED="" declare -x SELINUX_ROLE_REQUESTED="" declare -x SELINUX_USE_CURRENT_RANGE="" declare -x SHELL="/bin/bash" declare -x SHLVL="1" declare -x SSH_ASKPASS="/usr/libexec/openssh/gnome-ssh-askpass" declare -x SSH_CLIENT="::1 50346 22" declare -x SSH_CONNECTION="::1 50346 ::1 22" declare -x SSH_TTY="/dev/pts/11" declare -x TERM="xterm" declare -x USER="dywang" declare -x XMODIFIERS="@im=gcin"
[dywang@dywmac ~]$ export myip=192.168.122.1 [dywang@dywmac ~]$ export | grep myip declare -x myip="192.168.122.1" [dywang@dywmac ~]$ bash [dywang@dywmac ~]$ echo $myip 192.168.122.1 [dywang@dywmac ~]$ exit exit