foo : The term 'foo' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

From Esolang
Jump to navigation Jump to search

foo : The term 'foo' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. or simply llehsrewoP is an esolang created by User:None1 and inspired by bash: foo: No such file or directory, it imitates a common Powershell error when you attempt to execute a command that does not exist.

Commands

Every command is valid, and prints:

[command] : The term '[command]' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Interpreter

Python

[print("{} : The term '{}' is not recognized as the name of a cmdlet, function, script file, or operable program.\nCheck the spelling of the name, or if a path was included, verify that the path is correct and try again.".format(x,x)) for x in __import__('sys').stdin.read().split('\n')]

C

The program implements a REPL, and uses the insecure function gets to read the program.

#include<stdio.h>
char _[1000000];int main(){while(!feof(stdin)){printf("PS C:\\>");gets(_);printf("%s : The term '%s' is not recognized as the name of a cmdlet, function, script file, or operable program.\nCheck the spelling of the name, or if a path was included, verify that the path is correct and try again.\n",_,_);}}

Batch

@echo off
:bad
set /p x=PS C:\^>
echo %x% : The term '%x%' is not recognized as the name of a cmdlet, function, script file, or operable program.
echo Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
goto bad

See also

P.S.: It's the language with the second longest name on this wiki (The longest is BF+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++).