compgen. bash -, modprobe , . compgen, , , , .
$ complete -p modprobe
complete -F _modprobe modprobe
$ compgen -F _modprobe
bash: compgen: warning: -F option may not work as you expect
, , , ; .
, , script readline. , , (cron, dememons), .
$ echo -en "bind 'set page-completions Off'
bind 'set completion-query-items 0'
sudo modprobe \t\t\x15" | bash -i
$ sudo modprobe
3c574_cs msi-laptop
3c589_cs msi-wmi
3c59x msp3400
3w-9xxx mspro_block
(...)
ms_block zr36067
msdos zr364xx
msi001 zram
msi2500
$ exit
:
bind 'set page-completions Off' "--More--", script, , .
set completion-query-items 0 " 3598 ? (y n)".
sudo modprobe \t\t . .
\x15 - hex C-u, unix-line-discard, , sudo modprobe .
, stderr. , , 2> file, 2>&1 |&.
, @betterworld M-* :
$ echo -en 'sudo modprobe \e*\x01\ed\edecho' | bash -i 2>/dev/null
emacs ( ). set -o emacs\n, .