Re: How to make custom alias in ~.bash_profile work on F10 86_64

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 01 Dec 2008 08:40:43 -0430
"Patrick O'Callaghan" <pocallaghan@xxxxxxxxx> wrote:

> 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:
> 
> [poc@bree:~] alias foo='ls -ld'
> [poc@bree:~] foo
> drwxr-xr-x 236 poc poc 20480 2008-12-01 01:07 .
> [poc@bree:~] bash
> [poc@bree:~] foo
> bash: foo: command not found
> 
> poc
> 
>
After puting alias commands in bash.rc or profile.rc you have to run
"bash" (whithout"") at the prompt. Then the aliases work
 henk

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux