thunderbird -compose "attachment='$HOME/test test.txt'" работает.
thunderbird -compose "attachment='$HOME/test, test.txt'" не работает и выдает сообщение об ошибке file does not exist .
Это должно быть из-за того, как Thunderbird обрабатывает аргументы командной строки; например,
thunderbird -compose "to='name@mail.com',attachment='~/file.txt'"
В compose аргументы , и что должно быть , почему наличие в имени файла ломает вещи. Однако я не могу придумать, как "экранировать" запятые в имени файла.
Замечания:
- В Thunderbird 3+ использование файла протокола
file://больше не требуется.
И то и другое
thunderbird -compose "attachment='$HOME/test test.txt'"
а также
thunderbird -compose "attachment='file://$HOME/test test.txt'"
Работа.
ни
thunderbird -compose "attachment='$HOME/test, test.txt'"
ни
thunderbird -compose "attachment='file://$HOME/test, test.txt'"
работает.
