On Mon, May 10, 2010 at 9:56 AM, Chris Adams <[email protected]> wrote: > Once upon a time, Alan Evans <[email protected]> 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 > }
Cool. Thanks! (I always knew that my attempt was amateurish...) -- users mailing list [email protected] To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
