Skip to content

Instantly share code, notes, and snippets.

@rindeal
rindeal / stack.sh
Last active July 29, 2016 23:13 — forked from bmc/stack.sh
A stack implementation, in bash
#!/bin/bash
# A stack, using bash arrays.
#
# Based on: https://gist.github.com/bmc/1323553 by Brian Clapper (bmc) <bmc@clapper.org>
# ---------------------------------------------------------------------------
# Check if a stack exists
#
# Usage: stack_exists name