I don't understand why this two commands don't provide the same result (the differrence is only relative vs. absolute path), can somebody explain it?
annika /srv/www/pages/com.example.www/www/povruc # find /srv/www/pages/com.example.www/www | xargs grep "datepicker()" 2>/dev/null
/srv/www/pages/com.example.www/www/povruc/Application/Libraries/3rdParty/zebra/includes/Date.php: function disable_zebra_datepicker() {
/srv/www/pages/com.example.www/www/js/functions.js: $(".datepicker").datepicker();
versus
annika /srv/www/pages/com.example.www/www/povruc # find ../ | xargs grep "datepicker()" 2>/dev/null
../povruc/Application/Libraries/3rdParty/zebra/includes/Date.php: function disable_zebra_datepicker() {
In the second case the second match is not found
UPDATE - proved that there are no symlinks in the path:
annika /srv/www/pages/com.example.www/www/povruc # namei -ml $(readlink -f $PWD)
f: /srv/www/pages/com.example.www/www/povruc
drwxr-xr-x root root /
drwxr-xr-x root root srv
drwxr-xr-x root root www
drwxr-xr-x root root pages
drwxrwx--- Wexampl001 root com.example.www
drwxrwx--- Wexampl001 root www
drwxrwx--- Wexampl001 root povruc