Cmder - 'eval' command is not recognized
Asked Answered
O

4

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

Just downloaded it for Windows 10.

Ocam answered 29/2, 2016 at 20:42 Comment(2)
What would you expect eval to be on a Windows box?Goggleeyed
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.Desrochers
O
93

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

Ocam answered 29/2, 2016 at 20:52 Comment(5)
do you know how to exit bash in cmder?Broach
Have you tried Ctrl + d? (exit actually also works for me)Earwax
This definitely should be mentioned here: help.github.com/enterprise/2.11/user/articles/…Lexine
this doesn't work on windows...Baronet
How to get into a bash shell?Meemeece
E
64

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

Emotionalize answered 29/7, 2021 at 11:47 Comment(1)
This is the thing that worked for me! eval did not but frustrate meItin
E
4

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

Extol answered 17/7, 2021 at 11:44 Comment(1)
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.Beriberi
Y
-1

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

enter image description here

Yahairayahata answered 15/11, 2021 at 6:28 Comment(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.Dovap

© 2022 - 2024 — McMap. All rights reserved.