#1898 prosodyctl shell commands `!!` and `!old!new!` don't work
Reporter
lissine
Owner
MattJ
Created
Updated
Stars
★ (1)
Tags
Priority-Low
Status-Fixed
Type-Defect
lissine
on
`prosodyctl shell help console` says:
```
For now we offer a couple of handy shortcuts:
!! - Repeat the last command
!old!new! - repeat the last command, but with 'old' replaced by 'new'
```
Examples:
```
prosody> server:version()
| OK: 13.0 nightly build 7 (2025-02-17, e9edf9b50f32)
prosody> !!
! Sorry, I couldn't understand that... console:1: unexpected symbol near '!'
prosody> server:version()
| OK: 13.0 nightly build 7 (2025-02-17, e9edf9b50f32)
prosody> !version!uptime!
! Sorry, I couldn't understand that... console:1: unexpected symbol near '!'
```
Zash
on
Thanks for the report. Investigating, I found this has been broken a long time. I can't myself remember using this feature even. Perhaps we don't need it?
Changes
tags Priority-Low
lissine
on
IIRC this has been broken for a long time on 0.12, and nobody complained.
So, probably no one would care if it's removed.
`prosodyctl shell help console` says: ``` For now we offer a couple of handy shortcuts: !! - Repeat the last command !old!new! - repeat the last command, but with 'old' replaced by 'new' ``` Examples: ``` prosody> server:version() | OK: 13.0 nightly build 7 (2025-02-17, e9edf9b50f32) prosody> !! ! Sorry, I couldn't understand that... console:1: unexpected symbol near '!' prosody> server:version() | OK: 13.0 nightly build 7 (2025-02-17, e9edf9b50f32) prosody> !version!uptime! ! Sorry, I couldn't understand that... console:1: unexpected symbol near '!' ```
Thanks for the report. Investigating, I found this has been broken a long time. I can't myself remember using this feature even. Perhaps we don't need it?
ChangesIIRC this has been broken for a long time on 0.12, and nobody complained. So, probably no one would care if it's removed.
Thanks for the report! I've removed this help text in https://hg.prosody.im/trunk/rev/5cc4a3e0335c
Changes