The second example, above, requires the initial #!, since the variable assignment .. the variables inside a code block remain visible to the remainder of the script. of the file, /etc/X11/xinit/xinitrc, and analyze the if/then test constructs there. often set as environmental variables in one of the Bash or login startup files..