ftp
accesses the following environment variables.
HOME
Used for locating a .netrc file, if one exists.
NETRC
Alternate location of the .netrc file, taking precedence over the standard location.
SHELL
For determining the default shell interpreter.