Once upon a time, Alan Evans <ame.fed...@gmail.com> said:
> cd ()
> {
>        builtin cd $1 || return
>        [[ -f ./.autorun ]] && . ./.autorun
> }

Any shell functions should properly quote their arguments (and there are
possibly arguments to cd, so you should pass all args, not just the
first).  So:

cd ()
{
       builtin cd "$@" || return
       [[ -f ./.autorun ]] && . ./.autorun
}

-- 
Chris Adams <cmad...@hiwaay.net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

Reply via email to