Skip to content

exercism/bash-analyzer

This branch is up to date with main.

Folders and files

NameName
Last commit message
Last commit date
Sep 28, 2021
Jan 1, 2025
Mar 21, 2022
Sep 28, 2021
Mar 21, 2022
Mar 21, 2022
Sep 28, 2021
Sep 28, 2021
Mar 21, 2022
Feb 29, 2024
Apr 24, 2023
Sep 14, 2021
Apr 24, 2023

Repository files navigation

Exercism's Bash Analyzer

This is Exercism's automated analyzer for the Bash track.

It is run with bin/run.sh $exercise $path_to_files $path_for_output and will read the source code from $path_to_files and write a text file with an analysis to $path_for_output.

For example (note the kebab-case of the exercise slug):

bin/run.sh two-fer /opt/exercises/two-fer /opt/analysis_output

Docker setup

We're using a LTS Ubuntu base image, and adding bats and shellcheck. Ubuntu 20.04 ships with bash 5.1.16. It would be nice to use an image with bash 5.2. The official bash image is based on Alpine, which does not ship with GNU core tools.