12-13-2012
23,310,
4,623
Join Date: Aug 2005
Last Activity: 7 July 2020, 11:47 AM EDT
Location: Saskatchewan
Posts: 23,310
Thanks Given: 1,331
Thanked 4,623 Times in 4,217 Posts
It's a shell builtin and a library call, not a shell command.
If getcwd is failing, that may mean the user cannot access their current directory for some reason. Perhaps they had permissions to cd to it, but not to read it?