set tmp='"apple"'
echo $tmp
set tmp='"banana"'
echo $tmp
./test.csh
"apple"
"banana"
sh -f test.csh
ls -a
. .. test.csh test.csh.x test.csh.x.c
./test.csh.x
/bin/csh: Event not found.
"apple"
"banana"
when I execute ./test.csh.x
it seem treat "!" as "history substitution"
however, according to shc man,
"The compiled binary will still be dependent on the shell specified in the first line of the shell code (i.e. #!/bin/sh), thus shc does not create completely independent binaries."
Hi neurobin, I got some troubles:
when I execute ./test.csh.x it seem treat "!" as "history substitution" however, according to shc man, "The compiled binary will still be dependent on the shell specified in the first line of the shell code (i.e. #!/bin/sh), thus shc does not create completely independent binaries."
how can I fix it?
Appendix: