What is the correct way to save the current directory to a variable?

  • A=`pwd`
  • A=cwd
  • A=pwd
  • pwd $A
  • pwd | $A
Для просмотра статистики ответов нужно залогиниться.