posix shell: use /bin/sh instead of bash
This uses the systems default shell: - Ubuntu: dash - Fedora: bash Since bash is invoked via /bin/sh, it operates in POSIX mode: https://tiswww.case.edu/php/chet/bash/POSIX - remove '# Ignore the expand_aliases command in zshell.' Not needed because the shell operates in POSIX mode - [[ is bashism -> use [ - autostart_files=( $autostart_file_match ) is not supported in dash, so use 'ls' - shellcheck runs the dash flavor, since dash is a minimalistic shell. Tested on dash & bash.
Showing
- ROMFS/px4fmu_common/init.d-posix/rcS 2 additions, 5 deletionsROMFS/px4fmu_common/init.d-posix/rcS
- Tools/run-shellcheck.sh 1 addition, 0 deletionsTools/run-shellcheck.sh
- platforms/posix/CMakeLists.txt 4 additions, 4 deletionsplatforms/posix/CMakeLists.txt
- platforms/posix/src/main.cpp 11 additions, 16 deletionsplatforms/posix/src/main.cpp
- platforms/posix/src/px4-alias.sh_in 11 additions, 9 deletionsplatforms/posix/src/px4-alias.sh_in
Loading
Please register or sign in to comment