Если строка заголовка и границы являются пользовательскими, то это - причина, почему Вы не можете перетащить их. Кажется, что менеджер окон не включен.
внутренний источник команды bash
, сначала ищется имя файла в PATH , если в имени файла нет косой черты ( /
). xset
- это исполняемый файл в вашем PATH, отсюда и проблема.
Вы можете либо выполнить source ./xset
, либо выключить опцию sourcepath с помощью:
shopt -u sourcepath
Из справочной страницы bash
:
source filename [arguments]
Read and execute commands from filename in the current shell
environment and return the exit status of the last command exe‐
cuted from filename. If filename does not contain a slash, file
names in PATH are used to find the directory containing file‐
name. The file searched for in PATH need not be executable.
When bash is not in posix mode, the current directory is
searched if no file is found in PATH. If the sourcepath option
to the shopt builtin command is turned off, the PATH is not
searched. If any arguments are supplied, they become the posi‐
tional parameters when filename is executed. Otherwise the
positional parameters are unchanged. The return status is the
status of the last command exited within the script (0 if no
commands are executed), and false if filename is not found or
cannot be read.
Команда source
будет :
Считывать и выполнять команды из аргумента filename в текущем контексте оболочки. Если filename не содержит косой черты, переменная
PATH
используется для поиска filename .
Это поведение определяется (для .
, его псевдоним) POSIX . Почему? Что ж, вы можете поместить исходные сценарии конфигурации в PATH
и обращаться к ним без указания пути. Чтобы получить доступ к нужному файлу, укажите вместо этого абсолютный или относительный путь:
source ./xset
source ~/xset
source /home/shawn/xset
Все вышеперечисленное будет работать так, как вы изначально ожидали. Вы также можете отключить исходный путь
с помощью shopt
.