[exim] Re: another transport filter question

Pàgina inicial
Delete this message
Reply to this message
Autor: Evgeniy Berdnikov
Data:  
A: exim-users
Assumpte: [exim] Re: another transport filter question
On Thu, Jan 04, 2024 at 11:02:30AM -0800, Ian Z via Exim-users wrote:
> Conceivably, if exim detects that an arg is empty, it could just
> remove it from the list of args.


Why? Args are positional, and empty string is a valid arg, isn't it?

Bourne shells remove empty expressions during evaluation of arguments
(historically, and not all shells by default), but they first expand
variables, then split string by whitespace separators, more precisely,
split by contents of IFS. And on the last step, quotes are removed,
so the only method to pass empty string in shell is to use '' or "".
--
Eugene Berdnikov

--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-users-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/