The -exec param of find is executed by find, not by the bash, and find
doesn't look into your aliases. This is expected behaviour. Find won't
neither execute bash functions. And it does not allow redirection like
such:

<code>
$ find -exec ls {} > /dev/null \;
<code>

You have to invoke bash as a login shell (-l) and set the shell option
"expand aliases". Read "man bash", especially section ALIASES, for
further insights.

<code>
$ find -type f -name "*.mp3" -exec bash -l -O expand_aliases -c "mp3gainB {}" 
";"
</code>

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/366665

Title:
  find wont use .bashrc alias

To manage notifications about this bug go to:
https://bugs.launchpad.net/findutils/+bug/366665/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to