Variable is not expanded in a command with diff

My shell is zsh. I tried these command on bash, which successed. ignore_files=( local \*.local.\* .bundle Gemfile.lock ) ignore_command=”” for f in “${ignore_files[@]}”; do ignore_command=”$ignore_command -x $f” done echo $ignore_command # print: -x local -x *.local.* -x .bundle -x Gemfile.lock sudo diff -ruNd $ignore_command <path a> <path-b> # failed: diff: extra operand ‘<path-b>’ echo sudo…

Details

Error when trying to install cmake in ubuntu

Reading package lists… Done Building dependency tree Reading state information… Done The following additional packages will be installed: cmake-data libjsoncpp1 librhash0 libuv1 Suggested packages: cmake-doc ninja-build The following NEW packages will be installed: cmake cmake-data libjsoncpp1 librhash0 libuv1 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded. Need to get 1,332 kB/4,497…

Details