Quote:
Originally Posted by gudum35
Any other ideas?
|
Are you using bash? In bash, aliases are not as powerful as in some other shells (like tcsh), and they don't handle arguments very well. Fortunately there is an alternative - you can use a bash function to do the same thing. Type this:
Code:
cdjobdir () { cd `jobdir $1`; }
Once you've typed that, you should be able to do this:
I've tested it a bit here with a dummy script standing in for your jobdir script, and it works perfectly in bash. (You'll probably have to unalias cdjobdir before you enter the function - I don't think you can have a function and an alias with the same name at the same time).