you must install singularity with the following commands:
git clone https://github.com/singularityware/singularity.git
cd singularity
git fetch --all
git checkout 2.6.0
./autogen.sh
./configure --prefix=/usr/local --sysconfdir=/etc
make
sudo make install
tap competition
if you install singularity without --sysconfdir parameter, The completion script can not be installed for all users.
If you omit the --sysconfdir option , the configuration file will be installed in /usr/local/etc
strange characters
check if the default shell is working fine
echo $SHELL
the values can be /bin/bash or /bin/sh, or at least they are the most common.
check the user's shell, outside the container, because these values are passed when the container is displayed.
Now, terminal represents the raw keycode of the keys sent to it by the keyboard, and shell would normally intercept the keypress;
but for some reason they are directly printing the value of the modifier keys.
from the bash manual for special characters, what does ^[[A mean?
\[ begin a sequence of non-printing characters, which could be
used to embed
a terminal control sequence into the prompt
terminal control sequence refiere to special keys ( Ctrl, Alt, Win, ... ) modifiers. In other words, ANSI escape codes.
then ^[[A^[[B^[[D^[[C are cursor-down, cursor-up, cursor-left, cursor-right
and these are shown because you combine the cursor keys with modifier keys.
At this point I can not give you a clear solution for lack of detail in the information you provide.