WindowsPowerShellがサポートする文字コードは限られています。
denoから出力できるファイル形式も、現状あまり選択肢はありません。
全角文字を含むps1を出力してPowerShellで実行するためのサンプルを作成しました。
denoから出力できるファイル形式も、現状あまり選択肢はありません。
全角文字を含むps1を出力してPowerShellで実行するためのサンプルを作成しました。
以下のサンプルのようにps1として出力する内容が4行程度なら、全角文字の使用を我慢することも可能ですが、これから先、複雑かつ長いプログラムをPowerShell側で実行する可能性があることを考えると全角文字が使えないのは非常に困るので、作成に至りました。
ソース
実行
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deno run --allow-write --allow-run --allow-read 更新日を揃える.ts C:\deno\1.11.0\1.ts C:\deno\1.11.0\2.ts |
0 件のコメント:
コメントを投稿