exercism

Exercism solutions.
Log | Files | Refs

commit 3d3ab591b93471dfbd32f5056ce26dbfb379ffb1
parent e50959488ae2ed6f7aaa234be983e6786167499c
Author: dwrz <dwrz@dwrz.net>
Date:   Wed, 26 Jun 2019 12:05:24 +0000

Refactor bash/two-fer

Diffstat:
Mbash/two-fer/two_fer.sh | 8+-------
1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/bash/two-fer/two_fer.sh b/bash/two-fer/two_fer.sh @@ -1,9 +1,3 @@ #!/usr/bin/env bash -name="you" - -if [ "$#" -ge 1 ]; then - name=$1 -fi - -echo "One for $name, one for me." +echo "One for ${1:-you}, one for me."