On Tuesday 05 June 2012 22:18:53 Clark WANG wrote:
> See following example:
> 
> $ echo ${.sh.version}
> Version JM 93u+ 2012-05-31
> $ cat << END
> 
> > ${.sh.version}
> > END
> 
> ksh.120531.93u+: cat: not found [No such file or directory]
> $
> 
> Other .sh vars like ${.sh.fun} have the same problem. ksh93u
> (2011-02-08) behaves the same.

I can reproduce this.

stracing ksh shows it's trying to exec /bin/.sh.cat, it starts by finding 
/bin/sh and correctly putting the here-document in a file in /tmp, but when 
it's done, the binary name has been replaced by /bin/.sh.cat

Anders

_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to