Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Perl replacement challenge



ramos@xxxxxxxxxxxxxxxxxxxx wrote:
>	# Use "kshdot some_ksh_script" instead of ". some_ksh_script"
>
>	kshdot() { source =(ksh -c ". $* 1>&2; senv") }

How about

function kshdot {
  emulate ksh
  setopt localoptions
  . $@
}

-zefram



Messages sorted by: Reverse Date, Date, Thread, Author