RE: alias

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

 



Everyone has given fixes, but nobody has explained why his original command didn't work.

alias is used to alias commands. It is not for substitutions anywhere else in the command line. So cd ule 
wouldn't work, because ule wasn't the command. The alias ule='cd /usr...' works, if ule is used as a 
command, not as the parameter of a cd command. The symbolic link given before only works if you're
in the directory that the symbolic link exists in.

----
Robert P. Nix                            internet: nix.robert@xxxxxxxx
Mayo Clinic                                  phone: 507-284-0844
RO-CE-8-857                                page: 507-270-1182
200 First St. SW 
Rochester, MN 55905      
----   "Codito, Ergo Sum" 
"In theory, theory and practice are the same,
 but in practice, theory and practice are different."



> -----Original Message-----
> From:	fedora-list-bounces@xxxxxxxxxx [SMTP:fedora-list-bounces@xxxxxxxxxx] On Behalf Of Clair Garman
> Sent:	Wednesday, April 14, 2004 8:31 AM
> To:	fedora
> Subject:	Re: alias
> 
> On Wed, 2004-04-14 at 07:14, Spero Manolatos wrote:
> > I am using the sh shell.
> >  
> > Have tried to use alias in the following way:
> >  
> > Alias <string> <dir> 
> >  
> > Example:   alias ule /usr/local/etc
> >  
> > When I try to retrieve the alias using cd ule it does not work.
> >  
> > If I type alias then enter I do get a list with ule included?????
> 
> I suggest the following:
> 
> alias ule='cd /usr/local/etc'
> 
> ule
> 
> 
> 
> ________________________________________________________________________
> Clair Garman     301-270-2248   Takoma Park, MD 
> 
> All teenagers should get a high school education - 
> even if they already know everything. << File: ATT5849298.txt >> 



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux