Openwrt/scripts
Yousong Zhou aa66aa0c9a scripts/qemustart: more portable array operation
The following commands output 1,2,1,1

    cmd0='a=("${a[@]}" 'a'); echo "${#a}"'
    cmd1='a+=('a'); echo "${#a}"'
    bash -c "$cmd0"; zsh -c "$cmd0"
    bash -c "$cmd1"; zsh -c "$cmd1"

The following outputs 0,1,0,0

    cmd2='f() { echo "$#"; }; f "${a[@]}"'
    cmd3="a=(); $cmd2"
    bash -c "$cmd2"; zsh -c "$cmd2"
    bash -c "$cmd3"; zsh -c "$cmd3"

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-01-31 16:54:57 +08:00
..
config
flashing
arm-magic.sh
brcmImage.pl
bundle-libraries.sh
checkpatch.pl
clang-gcc-wrapper
clean-package.sh
cleanfile
cleanpatch
combined-ext-image.sh combined-ext-image.sh: generate image in temp dir 2018-01-13 07:58:46 +01:00
combined-image.sh
config.guess
config.rpath
config.sub
deptest.sh
diffconfig.sh
dl_cleanup.py
download.pl
env
ext-toolchain.sh
feeds scripts/feeds: fix install of packages with different source/binary names 2018-01-14 17:07:58 +01:00
fixup-makefile.pl
gen_image_generic.sh
gen-dependencies.sh
get_source_date_epoch.sh
getver.sh
ipkg-build
ipkg-make-index.sh
kconfig.pl
make-ipkg-dir.sh
md5sum
metadata.pm build: remove obsolete "package feature" feature 2018-01-13 19:54:45 +01:00
mkhash.c
mkits.sh
om-fwupgradecfg-gen.sh om-fwupgradecfg-gen.sh: add support for the A42 2018-01-13 07:58:49 +01:00
package-metadata.pl metadata: do not emit broken kconfig dependency statements 2018-01-14 19:00:06 +01:00
pad_image
patch-kernel.sh
patch-specs.sh
portable_date.sh
qemustart scripts/qemustart: more portable array operation 2018-01-31 16:54:57 +08:00
redboot-script.pl
relink-lib.sh
remote-gdb
rstrip.sh
slugimage.pl
srecimage.pl
strip-kmod.sh
symlink-tree.sh
sysupgrade-tar.sh
target-metadata.pl
timestamp.pl
ubinize-image.sh