I'm using the terminal in MacOS. When I directly use the command find and fgrep to find the specified string in files, the result is normal. However when I'm trying to put my command into an alias command, the error occurs. Please view the details bellow. How can I fix this? Thanks.
(gluon) ULM:测试 Lever$ find ./ -type f -exec fgrep -l 'cylinderActor' {} \;
.//vtk_test.ipynb
.//.ipynb_checkpoints/vtk_test-checkpoint.ipynb
(gluon) ULM:测试 Lever$ alias fmy='find ./ -type f -exec fgrep -l $@ {} \;'
(gluon) ULM:测试 Lever$ fmy 'cylinderActor'
find: cylinderActor: unknown primary or operator