On Mon, 2008-12-01 at 11:27 +0000, Steve wrote:
> > Unfortunately, exporting aliases is not supported by bash (neither
> in 
> > /etc/profile nor ~/.bash_profile) :-(
> 
> No ! that's not right ! Of course it is supported. Aliases can be
> defined anywhere /etc/bashrc, /etc/profile, /etc/profile.d/*,
> ~/.bashrc, ~/.bash-profile  ie: in any of the rc files.

These files are 'eval'ed, so their contents are executed in the context
of the current shell.

A simple test shows that aliases are not exported:

[EMAIL PROTECTED]:~] alias foo='ls -ld'
[EMAIL PROTECTED]:~] foo
drwxr-xr-x 236 poc poc 20480 2008-12-01 01:07 .
[EMAIL PROTECTED]:~] bash
[EMAIL PROTECTED]:~] foo
bash: foo: command not found

poc

-- 
fedora-list mailing list
[email protected]
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Reply via email to