bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Poor messages when the '#!' file isn't found


From: Dan Jacobson
Subject: Poor messages when the '#!' file isn't found
Date: Fri, 14 Jun 2024 02:13:37 +0800

$ echo \#!/usr/bin/python > k
$ chmod +x k
$ ./k
bash: ./k: cannot execute: required file not found

Bash should really mention what file it is talking about.

$ echo 'x:k; ./$<' > Makefile
$ make
./k
make: ./k: No such file or directory
make: *** [Makefile:1: x] Error 127
$ ls ./k
./k

Make is worse. Can't make more confusing messages than that one.

Yes,

$ ls /usr/bin/python*
/usr/bin/python3  /usr/bin/python3.11

but that's not the point.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]