I get the following error
find: paths must precede expression: a
I’m not sure what I’m doing wrong
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are a couple issues here. The arguments are in
$@, not@. Variable interpolation doesn’t happen in within single quotes, either. I only mention those for educational purposes, though, because the ultimate problem is that you can’t do argument expansion in an alias: it will evaluate it when declaring the alias, not dynamically when you use the alias. You have to make a function to do this. Like so:Edit: added missing semicolon.