Problem with aliasing
Sat, 2005-12-24 00:55
I'm using kdialog a lot in a Bash script, and I always use the option --title="$title". So I made an alias, alias kdialog="kdialog --title=\"$title\"". The line alias|grep kdialog in the script outputs alias kdialog='kdialog --title="Audio Konvert 0.3.0"', but the title of a dialog created with kdialog --yesno "test" has a title of "Question - KDialog."
I'm trying to keep this all in one script.










Using the below function instead of an alias does it:
kdialog () { `whereis 'kdialog'|cut -d' ' -f2` --title="$title" "$@" }