0

I'm trying to translate text in vim with advise from Replace visual selection. But when I call system('ru2uk', getreg('"')) (args transmited by system's argument) python script doesn't receive args by txt=' '.join(sys.argv[1:]). Concatenation works, the code: system('ru2uk ' . getreg('"'))

1 Answer 1

0

From :h system()

When {input} is given and is a string this string is written to a file and passed as stdin to the command.

So the second argument of system() is not "a command-line argument", it's stdin data. And it must be treated properly.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.