1 # xalias - convert csh alias commands to bash functions
2 # from Mohit Aron <aron@cs.rice.edu>
3 # posted to usenet as <4i5p17$bnu@larry.rice.edu>
10 echo $2 | egrep -q '(\!|#)'
13 comm=$(echo $2 | sed 's/\\!\*/\"$\@\"/g
14 s/\\!:\([1-9]\)/\"$\1\"/g
19 eval function $1 \(\) "{" command "$comm" "; }"