#!/bin/bash args=( "$@" ) case ${args[0]} in a) args[0]="add" ;; e|ed) args[0]="edit" ;; st) args[0]="status" ;; up) args[0]="upload" ;; esac exec /usr/bin/g4 "${args[@]}"