#!/usr/bin/env bash

# Prompt the user for some information, and add the input to an array.
# It'd be a good idea to perform validation on the provided input, which
# we do not do below in order to keep the example simple.

declare -a arr

read -p "What is your username? " -r username

arr+=("$username")

read -p "What is your favorite color? " -r color

arr+=("$color")

printf "\n\nthe final values are: %s\n" "${arr[*]}"