The backslash quoting can be used to bypass aliases, but it cannot be
used to bypass shell functions for interactive uses defined by the
users. We can use "command ls" instead to bypass both aliases and
shell functions.
'-n'|'--match-types')
OUTPUT_ALL="
$(command awk '{print $NF}' /proc/filesystems)
- $(\ls /lib/modules/$(command uname -r)/kernel/fs)
+ $(command ls /lib/modules/$(command uname -r)/kernel/fs)
"
;;
'-h'|'--help'|'-V'|'--version')
'-t'|'--types')
local prefix realcur TYPES
TYPES="
- $(\ls /lib/modules/$(command uname -r)/kernel/fs | command awk '{print $1, "no" $1}')
+ $(command ls /lib/modules/$(command uname -r)/kernel/fs | command awk '{print $1, "no" $1}')
$(command awk '{print $NF, "no" $NF}' /proc/filesystems)
"
realcur="${cur##*,}"
'-t'|'--types')
local TYPES
TYPES="
- $(\ls /lib/modules/$(command uname -r)/kernel/fs | command awk '{print $1, "no" $1}')
+ $(command ls /lib/modules/$(command uname -r)/kernel/fs | command awk '{print $1, "no" $1}')
$(command awk '{print $NF, "no" $NF}' /proc/filesystems)
"
COMPREPLY=( $(compgen -W "$TYPES" -- $cur) )