I just spent quite some time debugging a macro for a forum member in a private thread, until I discovered by chance that he used the
%Return% token to build a multi-line variable.
Of, course, when passing that variable for example to a
sort Shell Script action it fails completely, since every Unix tool is expecting linefeeds, not carriage returns.
As far as I know, carriage returns were used only up to Mac OS 9.
So, I think it would be a good idea to place a big fat warning on the KM Wiki article:
“Do not use the
%Return% token for anything, except you really need it for some obscure reason or legacy texts. Do never use it when feeding the variable to the shell! Use
BTW, in the same article
%LineFeed% is misspelled as %Linefeed%.