Hi, I'm trying to use zargs as it provide nice features to avoid xargs + zsh -lic ... . However I found that if I use replace string, only one {} is replaced. e.g. zargs -i{} -- hi -- echo "{} and {} is okay" will output 'hi and {} is okay' with the change will output 'hi and hi is okay' diff --git a/Functions/Misc/zargs b/Functions/Misc/zargs index ecd69f7e4..fff319fbf 100644 --- a/Functions/Misc/zargs +++ b/Functions/Misc/zargs @@ -291,7 +291,7 @@ do args=( "${(@)argv[1,end]}" ) shift $((end > ARGC ? ARGC : end)) if (( $#i )) - then call=( "${(@)command/$i/$args}" ) + then call=( "${(@)command//$i/$args}" ) else call=( "${(@)command}" "${(@)args}" ) fi if (( ${(c)#call} > s )) -- /****************** Best Regards Boyang Du ******************/