当我 cat
或 sed
一个 iOS 可执行文件时,它总是中断,并且我收到以下消息:
$ 1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c
当我按 Enter 时,我得到:
$ 1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c
-bash: 1: command not found
-bash: 2c1: command not found
-bash: 2c1: command not found
-bash: 2c1: command not found
-bash: 2c1: command not found
-bash: 2c1: command not found
-bash: 2c1: command not found
-bash: 2c1: command not found
-bash: 2c1: command not found
-bash: 2c1: command not found
-bash: 2c1: command not found
-bash: 2c: command not found
最佳答案
终端不是用来处理二进制文件内容的。它们会导致各种不受欢迎的行为,可能是因为终端将某些内容解释为具有特殊含义的特定字符序列,这在正常内容中永远不会出现(除非专门为了控制目的而发送到终端)。
关于linux - cat/sed 一个 iOS 可执行文件 - 在 macOS 上出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41733442/