reproduction: 1) create folder c:\666 `mkdir "c:\666"`
2) create folder c:\777 `mkdir "c:\777"`
3) Create example file file with text for search c:\666\example.txt `echo "Text for Search" > "c:\666\example.txt"`
4) Copy c:\666\example.txt to c:\777\example.txt `copy "c:\666\example.txt" "c:\777\example.txt"`
5) Create symlink c:\777 -> c:\666\777 `mklink /D "c:\666\777" "c:\777"`
6) Try search `Text for Search` with Geany ![13 01 2017 16-43-57-705](https://cloud.githubusercontent.com/assets/200750/21928939/9a86bdd2-d9af-11e...)
File with symlink is not founded `c:\666\777\example.txt`
Screencast: https://youtu.be/lzWsqX4xJm0
Find in files runs the `grep` program. If you select the `recursive` option the `-r` option is passed to grep. The `-r` option does not follow symlinks (on Linux or Windows). On Linux the `-R` option follows symlinks, and I presume it does on windows too. So set the `recursive` option off (to remove the `-r` ) and add `-R` to the `extra options` and see if it works. If it doesn't work check that your copy of grep works in the command line with that option.
Thanks, `-R` option solves this problem. So you can add additional option for search in symlink or use `-R` option by default.
![13 01 2017 17-37-23-620](https://cloud.githubusercontent.com/assets/200750/21930318/38d4211c-d9b7-11e...)
There is some doubt if grep can stop itself from going into an infinite loop if the symlinks make a cycle on windows. If it turned out to be safe then pull request could be accepted.
There is some doubt if grep can stop itself from going into an infinite loop if the symlinks make a cycle on windows. If it turned out to be safe then pull request could be accepted.
Don't worry grep can stop itself
![16 01 2017 11-55-48-338](https://cloud.githubusercontent.com/assets/200750/21973496/f08b56b8-dbe2-11e...)
Linux version protected too from infinite loop
![screenshot from 2017-01-17 01-23-11](https://cloud.githubusercontent.com/assets/200750/21997934/d0845808-dc53-11e...)
github-comments@lists.geany.org