Hi, It appears that _ is only actually set to the last argument of the previous 
"list", not the previous "command" as stated in the manual. (unless the 
manual's definition of "command" differs from my understanding.)

$ ksh <<\EOF
: first
: second; print -v _ .sh.version
EOF

first
Version AIJM 93v- 2014-01-14

Bash and zsh always set _ to the final argument of the most recently evaluated 
simple command.
-- 
Dan Douglas
_______________________________________________
ast-users mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-users

Reply via email to