Stephane Chazelas dixit: >In mksh, printf is not built-in which doesn't help. In all but
But in mksh, you just do this to quote: local foo set -A foo for x in "$@"; do foo+=("${x@Q}") done Or, probably faster: local foo nfoos=0 set -A foo for x in "$@"; do foo[nfoos++]=${x@Q} done ${var @ something} is mksh’s extension to expansion. Currently, Q (shell-quote) and # (hash) are defined. bye, //mirabilos -- 21:12⎜<Vutral> sogar bei opensolaris haben die von der community so ziemlich jeden mist eingebaut │ man sollte unices nich so machen das desktopuser zuviel intresse kriegen │ das macht die code base kaputt 21:13⎜<Vutral:#MirBSD> linux war früher auch mal besser :D