Cannot `source` shc-compiled scripts

后端 未结 1 738
既然无缘
既然无缘 2021-01-15 12:20

Is there any way to source (include) compiled script?

I use shc to compile all of my scripts and when I run them from the command line they work OK to

1条回答
  •  孤城傲影
    2021-01-15 12:46

    shc does not actually compile scripts. It merely obfuscates them by encrypting and embedding them inside a C program, so it cannot improve performance. The actual shell still interprets and executes the code and is required for the script to run.

    If you absolutely must use this tool to obfuscate your code, you will have to combine everything into a single file.

    0 讨论(0)
提交回复
热议问题