Article 59SNW I need some help understanding a couple of lines of bash script

I need some help understanding a couple of lines of bash script

by
taylorkh
from LinuxQuestions.org on (#59SNW)
Several vnc programs (vnc4, tightvnc, tigervnc) use a script ~/.vnc/xstartup to initiate the user's session on the remote machine - to which the vnc client will connect. Several of the examples floating arount the 'net contain these two linesCode:[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
i[ -r $HOME/.Xresources ] && xrdb $HOME/.XresourcesI am trying to understand what, if anything, they do. Regarding the files referenced in the code I can point out:

/etc/vnc/xstartup does NOT exist at least in recent versions of various vnc installs I have done - it might have existed at one time or in some flavor of vnc.

$HOME/.Xresources does NOT exist either. The man page for xrdb tells me Quote:
SYNOPSIS
xrdb [-option ...] [filename]

Xrdb is used to get or set the contents of the RESOURCE_MANAGER property on the root window of screen 0, or the SCREEN_RESOURCES property on the root window of any or all screens, or everything combined. You would normally run this program from your X startup file.
As Xresources does not exist, xrdb cannot be geting anything from it. The operation of the vnc server does not create such a file, even temporarily.

These two lines do not seem to be required to run the vncserver. Some examples have them commented out which makes me thing they were something that was required at one time and have been simply handed down blindly from generation to generation. But perhaps the do or did mean something and I am curious to understand the syntax.

I have used && to apply AND logic in a conditional statement. I do not understand its use here. i[ - does that mean anything? Perhaps it was once if [ ? I would greatly appreciate any insight.

TIA,

Kenlatest?d=yIl2AUoC8zA latest?i=hEwMAXYK-uQ:cfy37iGrYK8:F7zBnMy latest?i=hEwMAXYK-uQ:cfy37iGrYK8:V_sGLiP latest?d=qj6IDK7rITs latest?i=hEwMAXYK-uQ:cfy37iGrYK8:gIN9vFwhEwMAXYK-uQ
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments