Skip to content

Custom move and copy command works in terminal but not in lf subshell #1574

Answered by joelim-work
jan0sch asked this question in Q&A
Discussion options

You must be logged in to vote

I think it's because $@ is already an array (where elements can contain spaces), so there is no need to use "$(printf '%q' $line)". Do soing ends up adding a literal backslash into the array element and results in a 'no such file' error because now the filename actually contains \.

I changed the line at the top to just set -- "$@" "$line" and the script works for me.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jan0sch
Comment options

Answer selected by jan0sch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants