Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: passing modified parameter list to child
On Jul 2, 6:13pm, Ronald Fischer wrote:
} Subject: passing modified parameter list to child
}
} I have two scripts, master and slave. When the master script calls the
} slave script, it should pass all arguments to the slave (like in "$@"),
} with the following twist: If the LAST argument of master does NOT start
} with a dash, this argument should get a prefix "--use=".
Requires extendedglob:
argv[-1]="${argv[-1]/(#s)(#b)([^-])/--use=$match[1]}"
Messages sorted by:
Reverse Date,
Date,
Thread,
Author