1#!/bin/sh
23
if tty -s
4then
5echo "Run 'help' for help, or 'exit' to leave. Available commands:"
6else
7echo "Run 'help' for help. Available commands:"
8fi
910
cd "$(dirname "$0")"
1112
for cmd in *
13do
14case "$cmd" in
15help) ;;
16*) [ -f "$cmd" ] && [ -x "$cmd" ] && echo "$cmd" ;;
17esac
18done