Skip to content

CLI help doesn't work when there is a single character name file #17

@acloudiator

Description

@acloudiator

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions