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

please advice



Hello,

I'm trying to use and old bash script and port it to zsh.
It now basically does:

#!/bin/zsh


if [ $# -gt 0 ]; then
  echo "Number of arguments: $#"
  exit
fi

PRGARG="-bla1 -bla2 -bla3"

$0 $PRGARG


In zsh the number of arguments will be 1. How can I expand(?) it to three
as bash does?



-- 
Mircea Damian
E-mails: dmircea@xxxxxxxx, dmircea@xxxxxxxxx
WebPage: http://taz.mania.k.ro/~dmircea/



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