I've found the problem. When I invoked menu.sh I chose the option to "set version" and, when prompted "Enter the cvsup server address or hit enter to use the fastest found" I hit the enter key. I noticed that the printed version data displayed soon after gave the CVSUP Server as an email address. I didn't realise the significance of this.
After investigation, I ran menu.sh again and gave "" <enter>(three keystrokes) as the cvsup server and this time the version data didn't include the CVSUP Server.
Problem in menu.sh:
get_text "Enter the cvsup server address or hit enter to use the fastest found"
CVSUP_SOURCE=$get_text_value
get_text "Enter the E-mail address to send a message to upon operation finish"
EMAIL_ADDRESS_WHEN_FINISHED=$get_text_value
get_text "Enter the E-mail address to send a message to upon operation error"
EMAIL_ADDRESS_WHEN_ERROR=$get_text_value
get_text "Enter the twitter username to update upon snapshot posting"
TWITTER_SNAPSHOTS_USERNAME=$get_text_value
if [ ! "$TWITTER_SNAPSHOTS_USERNAME" = "" ]; then
get_text "Enter the twitter password to update upon snapshot posting"
TWITTER_SNAPSHOTS_PASSWORD=$get_text_value
fi
./set_version.sh $PFSENSE_VERSION \
$CVSUP_SOURCE \
$EMAIL_ADDRESS_WHEN_FINISHED \
$EMAIL_ADDRESS_WHEN_ERROR \
$TWITTER_SNAPSHOTS_USERNAME \
$TWITTER_SNAPSHOTS_PASSWORD
If just the <enter>key is typed to the cvsup server prompt the shell variable CVSUP_SOURCE is set to the null string so when set_version.sh is called the second parameter is null so that on entry to set_version.sh the third parameter from the call becomes the second parameter (hence setting the cvsup server name to the email address).
Perhaps CVSUP_SOURCE, EMAIL_ADDRESS_WHEN_FINISHED and EMAIL_ADDRESS_WHEN_ERROR need to be set to '""' (or somesuch; is there a shell variable to pass null strings as "" rather than <nothing>?) so the parameters don't vanish in the call to set_version.sh.</nothing></enter></enter>