getcwd stores its current working directory into a given environment variable, then executes a program.
getcwd var prog...
getcwd stores a fully resolved absolute path (i.e. without any .. or symbolic link components) to its current working directory into the var variable, then execs into prog with its arguments.