[英]Linux: What is the encoding of this shell script?
I'm trying to determine the encoding of a shell script. 我正在尝试确定Shell脚本的编码。 The following "file" command returns "application/x-shellscript". 以下“文件”命令返回“ application / x-shellscript”。 Is this the actual encoding? 这是实际的编码吗? I was expecting a standard encoding such as "utf-8" or "ascii". 我期待标准的编码,例如“ utf-8”或“ ascii”。 What am I missing? 我想念什么?
file --mime test.sh
test.sh: application/x-shellscript
EDIT: I moved the file over to my macbook and it worked: 编辑:我将文件移到我的Macbook,它的工作:
file --mime test.sh
test.sh: text/x-shellscript; charset=us-ascii
尝试--mime-encoding
开关:
file --mime-encoding test.sh
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.