| zhuyifei1999 added a comment. |
In T198817#4400033, @Xqt wrote:I am wondering that it is able for Linux because the option parameter -text:"$(cat Test.wiki)" is just a text. No glue why/how the bot can Interpret this as a batch command
It doesn't. That's bash. Double quotes allows interpretation of some tokens, and $() makes command substitution. Therefore, in bash, -text:"$(cat Test.wiki)" means execute cat Test.wiki, get its stdout, then prepend its stdout with -text: and use the entire prepended string as a single argument to python.
TASK DETAIL
EMAIL PREFERENCES
To: zhuyifei1999
Cc: zhuyifei1999, saper, Zoranzoki21, Xqt, Dvorapa, pywikibot-bugs-list, Framawiki, Aklapper, David_Hedlund, Magul, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy
Cc: zhuyifei1999, saper, Zoranzoki21, Xqt, Dvorapa, pywikibot-bugs-list, Framawiki, Aklapper, David_Hedlund, Magul, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
