[Linuxcommand-discuss] aliases in scripts
Brought to you by:
bshotts
From: Mertens B. <bra...@li...> - 2002-08-06 20:38:48
|
Hi, I added some aliases to my ~/.bashrc file like alias lh='ls -lh' and restarted my konsole to activate the changes (which works fine) but now I tried to call that alias from a script and I get: /home/M8ram/bin/bu: lh: command not found Is this because shell scripts are executed in a non-interactive shell? Is it possible to use aliases in scripts? (Without defining them in the script? I know I'm being really lazy! :))) Thanks -- | Mertens Bram "M8ram" <bra...@li...> | Registered [Red Hat] Linux User # 249103 since Octobre 2000 | http://linux.be | http://www.redhat.com | http://counter.li.org \____________________________ |