polycube
polycube copied to clipboard
CLI help doesn't work when there is a single character name file
It is a quite strange issue, if there is a filename with a single-character name in the folder where invoking CLI, the help commands do not work:
$ echo "It does not matter what you put here" > a $ polycubectl ? # gives "no service present with name a" $ polycubectl router add r0 $ polycubectl r0 ? # gives "404 Not Found" This is because the the ? is a bash special character is bash used as a single-character wild card [1]
This is not that important, I am only opening the issue to keep track of this in case somebody hits this problem.
[1] https://www.tldp.org/LDP/abs/html/special-chars.html
-Mauricio