armbian-build/lib
Ricardo Pardini efeb4d19e2
[PR] multiple fixes for the eval + PIPESTATUS construct (#3280)
- try this on your bash shell:
  - `ONEVAR="testing" eval 'bash -c "echo value once $ONEVAR && false && echo value twice $ONEVAR"' '| grep value'  '| grep value' ; echo ${PIPESTATUS[*]}`
  - Notice how PIPESTATUS has only one element. and it is always true, although we failed explicitly with false in the middle of the bash.
  - That is because eval itself is considered a single command, no matter how many pipes you put in there, you'll get a single value, the return code of the LAST pipe.
  - Lets export the value of the pipe inside eval so we know outside what happened:
  - `ONEVAR="testing" eval 'bash -e -c "echo value once $ONEVAR && false && echo value twice $ONEVAR"' '| grep value'  '| grep value' ';EVALPIPE=(${PIPESTATUS[@]})' ; echo ${EVALPIPE[*]}`
- also: pass LC_ALL=C LANG=C to avoid locale warnings

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>
2021-11-22 11:04:38 +01:00
..
build-all-ng.sh Possible fix for Opiz2 upgrade breaking 2021-11-16 05:53:35 +01:00
chroot-buildpackages.sh Chroot build packages cleanup and bug fixing (#3266) 2021-11-17 19:35:32 +01:00
compilation-prepare.sh
compilation.sh [PR] multiple fixes for the eval + PIPESTATUS construct (#3280) 2021-11-22 11:04:38 +01:00
configuration.sh Enable Netplan.io (#3248) 2021-11-15 23:34:36 +01:00
debootstrap.sh [PR] multiple fixes for the eval + PIPESTATUS construct (#3280) 2021-11-22 11:04:38 +01:00
desktop.sh A day of building and finding troubles in desktop builds (#3259) 2021-11-15 23:30:07 +01:00
distributions.sh Add support for next Ubuntu LTS (#3234) 2021-11-09 18:15:04 +01:00
fel-load.sh
general.sh Switch sources for sunxi 5.15 to the mainline kernel source. (#3272) 2021-11-20 19:48:51 +01:00
image-helpers.sh
main.sh
makeboarddeb.sh introduce DEB_COMPRESS for dpkg-deb+kernel's KDEB_COMPRESS (#3222) 2021-10-27 18:55:12 +02:00