Auto completion for op command show file is broken.
When pressing tab for auto completion, an error Invalid command: [_vyatta_image_file_complete] is returned because legacy Vyatta interpreter file vyatta-image-complete has been removed.
Description
Description
Details
Details
- Version
- 2025.10.07-0019-rolling
- Is it a breaking change?
- Perfectly compatible
- Issue type
- Bug (incorrect behavior)
Related Objects
Related Objects
Event Timeline
Comment Actions
Confirmed:
vyos@vyos:~$ copy file Invalid command: [_vyatta_image_file_complete] Possible completions: file Copy a file or a directory
VyOS 1.4.3 contains
vyos@vyos:~$ dpkg -S /opt/vyatta/share/vyatta-op/functions/interpreter/vyatta-image-complete vyatta-op: /opt/vyatta/share/vyatta-op/functions/interpreter/vyatta-image-complete
File is missing in both current and 1.5-stream-202509280454
Comment Actions
Some background: the scripts in question relate to the vyatta-image-tools.pl (not the image installer) and related scripts, cf. https://vyos.dev/T4038, for changes present in current but not 1.4.
On the other hand, the package vyatta-op was deprecated for versions > 1.4 in https://vyos.dev/T6527, and the file vyatta-image-complete was not included in vyos-1x: it would appear that the work above was to have provided a replacement, but that needs to be checked.
This will need a bit of analysis before a PR, but either we include the legacy script, or correct the errors in the possible replacement.