This question has already been properly answered by explaining the use of
functions in bash which are used to replace csh style parameterized
aliases. But the particular question begs for one more comment:

You can say

CDPATH='.:~'

in your .bashrc, or you can just say

export CDPATH='.:~'

in your .bash_profile

-- 
-Time flies like the wind. Fruit flies like a banana. [EMAIL PROTECTED]
-Stranger things have happened but none stranger than this. Steven W. Orr-
Does your driver's license say Organ Donor?Black holes are where God \
-------divided by zero. Listen to me! We are all individuals!---------

On Mon, 19 Jun 2000, SoloCDM wrote:

=>"Carey F. Cox" wrote:
=>> 
=>> On Mon, 19 Jun 2000, SoloCDM wrote:
=>> 
=>> > Is it possible to make an alias substitute an item into its command as
=>> > in the following:
=>> >
=>> >       $ alias cdl='cd ~/$@'
=>> >       $ cdl nsmail/Administrator.sbd
=>> 
=>> For bash scripts you will need to use a function as follows...
=>> 
=>>         $ function cdl { cd ~/$@ }
=>
=>Thanks, but I'm referring to the command-line -- not a script.


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to