martes, 12 de enero de 2010

Bash - Aliases within a script

#!/bin/bash
# alias.sh

shopt -s expand_aliases
# Must set this option, else script will not expand aliases.


# First, some fun.
alias Jesse_James='echo "\"Alias Jesse James\" was a 1959 comedy starring Bob Hope."'
Jesse_James

Ref: http://tldp.org/LDP/abs/html/aliases.html

No hay comentarios: