Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cmder - 'eval' command is not recognized

Tags:

bash

cmder

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

Just downloaded it for Windows 10.

like image 457
allidoiswin Avatar asked Feb 29 '16 20:02

allidoiswin


People also ask

What does the -- eval command line option do?

Overview. On a Unix or Linux system, the eval command is used to run the arguments as a shell command. When you have a Unix or Linux command saved in a variable and wish to run that command, the eval command is useful. The command evaluates the argument first, then executes the command it contains.

How do you eval in bash?

Examplel-2: Execute `expr` command using `eval`Create a bash file named evaltest.sh and add the following script. This script will assign two integer values into the variable $x and $y. The `expr` and `echo` commands are assigned into two variables, $c1 and $c2 which are executed later by using `eval` command.

What is eval command in Mac?

Evaluate several commands/arguments. Syntax eval arg ... The args are read and concatenated together into a single command. This command is then read and executed by the shell, and its exit status is returned as the value of eval.

What is eval command in shell script?

The eval command is used to execute the arguments as a shell command on unix or linux system. Eval command comes in handy when you have a unix or linux command stored in a variable and you want to execute that command stored in the string.


2 Answers

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

like image 139
allidoiswin Avatar answered Sep 19 '22 02:09

allidoiswin


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

like image 32
namal Avatar answered Sep 17 '22 02:09

namal