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
uname -a
Linux dove 2.6.32-573.1.1.el6.x86_64 #1 SMP Tue Jul 14 02:46:51 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux
ksh --version
version sh (AT&T Research) 93u+ 2012-08-01
cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.7 (Santiago)
I compiled a simple ksh shell script with shc (it does not matter which options are used or what the shell script actually does, the result is the same).
./a.out
shll=main
argc=1
argv[0]=./a.out
argv[1]=<null>
getenv(xffffffe4ac74559f)=<null>
shll=/bin/ksh
argc=4
argv[0]=./a.out
argv[1]=-c
argv[2]=exec '*23612*./a.out' "$@"
argv[3]=./a.out
argv[4]=<null>
./a.out: exec: *23612*./a.out: not found
I compiled a simple ksh shell script with shc (it does not matter which options are used or what the shell script actually does, the result is the same).
The ksh environment has a strange entry for $_
The problem is in the xsh function and here is how I fixed it temporarily:
I am sure there is a better way to fix this permanently.
The text was updated successfully, but these errors were encountered: