Re: OT, simple bash alias expansion question

2005-06-08 Thread Chris F.A. Johnson
On 2005-06-07, Tong wrote: Hi, How can I use my aliases in my bash script? This has been answered more than adequately in the comp.unix.shell newsgroup. The correct answer, which you seem not to like, is, Don't use aliases; use functions. When given advice on how to do the

OT, simple bash alias expansion question

2005-06-07 Thread Tong
Hi, How can I use my aliases in my bash script? This seems a very simple question but I just can't get it working. For example, I have an alias alias acpl='apt-cache policy' and this test file: $ cat cmd.bash shopt alias acpl apt-cache Now, no matter how I invoke the script, I always get

Re: OT, simple bash alias expansion question

2005-06-07 Thread Shreyas Ananthan
Tong [EMAIL PROTECTED] writes: Hi, How can I use my aliases in my bash script? This seems a very simple question but I just can't get it working. For example, I have an alias alias acpl='apt-cache policy' Have you tried $ source cmd.bash ?? -- To UNSUBSCRIBE, email to