Skip to content
Snippets Groups Projects
  • Beat Küng's avatar
    b972651a
    posix shell: use /bin/sh instead of bash · b972651a
    Beat Küng authored
    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.
    b972651a
    History
    posix shell: use /bin/sh instead of bash
    Beat Küng authored
    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.