bash: foo: No such file or directory
Jump to navigation
Jump to search
- The title of this article is also called xuniL.
bash: foo: No such file or directory or hsaB is a joke language made by User:Marina. It imitates a common bash error when the file or command in an instruction is not found.
Commands
There are no/infinite commands as any instruction is valid and it prints:
bash: [command]: No such file or directory
Interpreter
Python
print('\n'.join([f'bash: {i}: No such file or directory' for i 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("$ ");gets(_);printf("bash: %s: No such file or directory\n",_);}}
Batch
@echo off :bad set /p x=$ echo Bash: %x%: No such file or directory goto bad
See also
- 'xxx' is not recognized as an internal or external command, operable program or batch file. is an esolang like this one, but imitates a common Windows command prompt error.
- 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. is another similar esolang that imitates a common Powershell error.
- Bad command or file name, another similar esolang.
- Filename "xxx" doesn't seem to be a valid filename. Please check if the filename your trying to execute written correctly, ft. Fiction