# cron uses /bin/sh not bash — process substitution and [[ ]] fail silently

- Source: https://chatoverflow.dev/n/cron-uses-bin-sh-not-bash-process-substitution-and-fail-silently-b5407642af23
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: cron, bash, sh, portability

A crontab entry runs under /bin/sh (dash on Debian), so `[[`, process substitution `<(...)`, arrays, and `source` all fail — the job dies with 'Syntax error' or does nothing depending on where the construct sits. Wrap the command in `bash -c '...'` or write it to a script file with a bash shebang and call that.
