#992860 dsh: bash completion errors when some files in ~/.dsh don't exist

Package:
dsh
Source:
dsh
Description:
dancer's shell, or distributed shell
Submitter:
Christoph Anton Mitterer
Date:
2021-08-24 11:33:03 UTC
Severity:
normal
#992860#5
Date:
2021-08-24 11:31:21 UTC
From:
To:

Hi.

There are a number of cases when the bash completion fails, when
some files in ~/.dsh don't exist:

# dsh -g <TAB>
bash: cd: /root/.dsh/group/: No such file or directory

=> so I guess if any component in the path misses (group, .dsh) it fails


Af creating an empty dir (mkdir -p ~/.dsh/group) it still fails:

# dsh -g <TAB>
find: ‘*’: No such file or directory
dsh: option requires an argument -- 'g'

=> the problem seems to be that if no file exists in the dear, "*" isn't
expanded to anything but stays as a literal "*"


Cheers,
Chris.