I have small file that does initialize a tmux
session and then creates some windows. After some debugging and tweaking things worked fine until I renamed the text file (with the tmux
commands) from spam
to xset
:
$ source xset
bash: source: /usr/bin/xset: cannot execute binary file
I have now renamed the file back and source spam
works again, but I am wondering why this is. The file is in my home directory, and not in /usr/bin
.
Best Answer
the
bash
internal command source, first looks for the filename in PATH, unless there is a slash (/
) in the filename.xset
is an executable file in your PATH, hence the problem.You can either execute
source ./xset
or change the sourcepath option to off with:From the
bash
man-page: