Looking at the output of env
, I noticed that the following function is also listed.
BASH_FUNC_mc%%=() { . /usr/share/mc/mc-wrapper.sh }
The content of the /usr/share/mc/mc-wrapper.sh file is the following.
MC_USER=`id | sed 's/[^(]*(//;s/).*//'`
MC_PWD_FILE="${TMPDIR-/tmp}/mc-$MC_USER/mc.pwd.$$"
/usr/bin/mc -P "$MC_PWD_FILE" "$@"
if test -r "$MC_PWD_FILE"; then
MC_PWD="`cat "$MC_PWD_FILE"`"
if test -n "$MC_PWD" && test -d "$MC_PWD"; then
cd "$MC_PWD"
fi
unset MC_PWD
fi
rm -f "$MC_PWD_FILE"
unset MC_PWD_FILE
What do the %%
characters mean in the function name? Do they make it the function invoked in specific cases, or do they allow me to call it differently from other functions?
If it makes any difference, I am using OpenSUSE 42.3, with Bash version 4.3.42(1)-release (x86_64-suse-linux-gnu).