Skip to content

Complete existing filenames when pattern starts with / on Tcsh completion #523

Description

@dilipzt

Describe the bug

Auto command completion in tcsh shell on RHEL8 and RHEL9 does not working and throwing an error which is given below. but same thing is working on BASH shell and on RHEL7 for BASH and TCSH as well

module add /_module_not_yet_loaded: Command not found.
_module_not_yet_loaded: Command not found.

To Reproduce

#Loging to any RHEL9 or RHEL8 host
#Switch to tcsh and execute
#module add /AND PRESS HERE TAB

$ tcsh
$ module add /TAB KEY for auto command completion
...

Location and content of any modulerc or modulefile involved:

$ cat path/to/modulepath/module/version

 module --version
Modules Release 5.0.1 (2021-10-16)

$ cat path/to/modulepath/module/.modulerc
$ cat path/to/modulepath/.modulerc
...

Expected behavior

when pressing two times TAB key after forward slash then it must be give expected output as below

$module add /TAB_KEY-2Times
.autorelabel boot/ home/ media/ proc/ sbin/ usr/

Error and debugging information

$ module --debug <command1> <arguments>
$ module --debug <command2> <arguments>
...

Modules version and configuration

$ module --version
$ module config --dump-state

Additional context

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions