You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cat test.csh
#!/bin/csh -f
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:
The text was updated successfully, but these errors were encountered: