Hi,
How can I get ksh93 to behave like ksh88 with respect to $ENV execution
for scripts that contain a #!/bin/ksh shebang line? See my comparison
below. Please note the .env didn't execute for ksh93. I also tried
#!/bin/ksh -i
Ksh88
---------
$ echo $ENV
/home/mknemeth/.env
$ cat .env
echo running
$ /bin/ksh
running
$ echo ${.sh.version}
/bin/ksh: ${.sh.version}: bad substitution
$ cat xxx
#!/bin/ksh
echo hello world
$ ./xxx
running
hello world
Ksh93
----------
$ echo $ENV
/home/mknemeth/.env
$ cat .env
echo running
$ /bin/ksh
running
$ echo ${.sh.version}
Version M 1993-12-28 s+
$ cat xxx
#!/bin/ksh
echo hello world
$ ./xxx
hello world
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users