|
From: theozh <th...@gm...> - 2018-11-14 06:20:20
|
> Do you understand why the < characters need to be escaped? > It seems worth documenting this technique somewhere and it would > be nice to explain when this is or isn't necessary. > Would it would to put in another set of quotes instead? > load "< echo '$Data <<EOD' & type ".FILE > For some reason this does not work: load "< echo '$Data <<EOD' & type ".FILE I don't know why. The '<' characters need to be escaped because otherwise they would be interpreted as redirection. I found this information here: https://ss64.com/nt/syntax-redirection.html I haven't yet succeeded to put "EOD" at the end if the very last character of the datafile is not "\n". But apparently there is no need to put EOD at the end because it seems to work without. Yes, it would be nice if this will be documented somewhere "officially" :-) And maybe a more advanced Win-user can comment on this. |