61
λ eval
'eval' is not recognized as an internal or external command, operable program or batch file.

Just downloaded it for Windows 10.

Some Name
  • 8,555
  • 5
  • 27
  • 77
allidoiswin
  • 2,543
  • 1
  • 20
  • 23
  • 1
    What would you expect `eval` to be on a Windows box? – Joachim Isaksson Feb 29 '16 at 20:46
  • 3
    They're following instructions that assume a Linux machine (and a Linux machine with the Bash shell, specifically). When someone just tells you out of nowhere "run this eval command" and they don't even specify this crucial detail, you get confused. – Andrew Koster Jul 15 '19 at 21:27

4 Answers4

92

Use bash first to get into a bash shell. Then eval will work just fine.

allidoiswin
  • 2,543
  • 1
  • 20
  • 23
59

If you just want to add ssh-key to ssh-agent, use the below command.

start-ssh-agent.cmd

This will add default private keys such as id_rsa

namal
  • 1,164
  • 1
  • 10
  • 15
4

If You are using windows 10 and VS code, You can use git Bash in terminal - for me it worked.

elta
  • 91
  • 2
  • 10
HelloGello
  • 361
  • 1
  • 3
  • 11
  • Does not work for me in VS code; error: `Windows Subsystem for Linux has no installed distributions. Distributions can be installed by visiting the Microsoft Store: https://aka.ms/wslstore` Presumably one requires WSL or WSL2 plus an installed distro per error. – Evan Sep 02 '22 at 00:01
-1

Open your appilcation git bash,.. it is like cmd, but from git local, and you can run command eval

enter image description here

  • 1
    Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Nov 15 '21 at 07:33