<commit_before>#!/bin/bash

set -e

echo "[setup] Checking the login shell."
if finger "$USER" | grep 'Shell: /.*/zsh'; then
    echo "[setup] The login shell appears to already be zsh."
else
    if ! hash finger 2>/dev/null; then
        echo "[setup] The 'finger' utility does not appear to be available. Can't determine the login shell."
    fi
    echo '[setup] The login shell appears to be something other than zsh.'
    if ! fgrep -q "$(which zsh)" /etc/shells; then
        echo '[setup] It looks like zsh is not designated as an acceptable login shell.'
        echo "[setup] Adding $(which zsh) to /etc/shells."
        sudo -s 'echo "$(which zsh)" >> /etc/shells'
    fi
    echo '[setup] Changing the login shell to zsh.'
    until chsh -s $(which zsh); do<commit_msg>Prevent parameter expansion in setup script<commit_after>#!/bin/bash

set -e

echo "[setup] Checking the login shell."
if finger "$USER" | grep 'Shell: /.*/zsh'; then
    echo "[setup] The login shell appears to already be zsh."
else
    if ! hash finger 2>/dev/null; then
        echo "[setup] The 'finger' utility does not appear to be available. Can't determine the login shell."
    fi
    echo '[setup] The login shell appears to be something other than zsh.'
    if ! fgrep -q "$(which zsh)" /etc/shells; then
        echo '[setup] It looks like zsh is not designated as an acceptable login shell.'
        echo "[setup] Adding $(which zsh) to /etc/shells."
        sudo -s 'echo "$(which zsh)" >> /etc/shells'
    fi
    echo '[setup] Changing the login shell to zsh.'
    until chsh -s "$(which zsh)"; do
{'fraction_non_alphanumeric': 0.12185929648241206, 'fraction_numerical': 0.001256281407035176, 'mean_word_length': 2.847826086956522, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7222868', 'n_tokens_mistral': 499, 'n_tokens_neox': 475, 'n_words': 224}