所以我想将 binaryFile.dd 的前 512 个字节作为第二个参数传递给 myProgram 但 bash 去掉了所有的 NUL 字符。有什么办法可以在 bash 中避免这种情况,还是我什么都没有隐藏?
myProgram parameter1 "$(head -c 512 binaryFile.dd)"
bash binary command-substitution null
bash ×1
binary ×1
command-substitution ×1
null ×1