Steffen Nurpmeso wrote in <20250315225314.0SShmWUW@steffen%sdaoden.eu>: |Steffen Nurpmeso wrote in | <20250315224145.YPWRnxq7@steffen%sdaoden.eu>: ||Robert Elz wrote in || <8711.1742074...@jacaranda.noi.kre.to>: | ... || * Expands to the positional parameters, starting from one, || initially producing one field for each positional parameter that || is set. When the expansion occurs in a context where field || splitting will be performed, any empty fields may be discarded || and each of the non-empty fields shall be further split as || described in Section 2.6.5. || ||By the very meaning of this the fields are split individually, ||*first*. This is exactly what i do. | |And further, i have zero idea how shells come to the result that |they do if they do *not* split the fields individually. But if |they do, how comes that additional field.
And even further, if that is not what is happening in any of the shells starting with ksh, then the standard wording is deficient and cannot be used by shell implementors to create identical behaviour to already (long) existing shells. What am i missing? --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt)