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) <[email protected]>
# ---------------------------------------------------------------------------
# Check if a stack exists
#
# Usage: stack_exists name