User menu "something on current file" syntax question
Jonathan Bush
twixtfanatic at gmail.com
Mon Nov 18 16:39:00 UTC 2019
Apologies if this has been discussed.
The user menu option "do something on the current file" is very handy. But
sometimes a command will not have %f tacked on to the end. For example, the
mv command wants a destination at the end. So, I edited the user menu file
to include the option "type in a command and enter %f yourself." The
command is just $CMD with no %f after it. This would be more convenient
than typing in the source name in the shell. But so far, it isn't working
for me.
I copied to the clipboard the prefix mv -T %f which I then pasted into the
"enter command" text box. Then I typed in the new file name. The first
time, I neglected the -T option and got an error message that showed the
source file name, so at least, the %f was being turned into the name. But
when I fixed that, I got
mv: cannot stat '%f': No such file or directory
There were no tagged files when I did this.
This is version 4.8.19. Sorry but my PC is not currently connected to the
internet, and it is not easy to update my apps. Also I am not very familiar
with mc or with bash. Any clue would be greatly appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.midnight-commander.org/pipermail/mc/attachments/20191118/1a0eec1e/attachment.html>
More information about the mc
mailing list