Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-f seems to have same behavior as -l; also, symlink not working #28

Closed
vaughnkoch opened this issue Apr 18, 2012 · 1 comment
Closed

Comments

@vaughnkoch
Copy link

vaughn /temp/ag $ ls
bar foo
vaughn /temp/ag $ cat foo/one.txt
This is a test.
vaughn /temp/ag $ cat bar/two.txt
This is another test.
vaughn /temp/ag $ ag test
./bar/two.txt
1:This is another test.

./foo/one.txt
1:This is a test.
everything is as expected so far ---

but, this seems to have the behavior expressed by -l
vaughn /temp/ag $ ag -f test
./bar/two.txt
./foo/one.txt
vaughn /temp/ag $

note: --follow correctly tries to follow symlinks (unlike -f), but has an error:
vaughn /temp/ag $ ln -s ../ag_symlink/ symlink

vaughn /temp/ag $ ll
drwxr-xr-x 3 vaughn wheel 102 Apr 17 17:30 foo
drwxr-xr-x 3 vaughn wheel 102 Apr 17 17:30 bar
drwxr-xr-x 61 vaughn wheel 2.1K Apr 17 17:34 ..
lrwxr-xr-x 1 vaughn wheel 14 Apr 17 17:39 symlink -> ../ag_symlink/
drwxr-xr-x 5 vaughn wheel 170 Apr 17 17:39 .

echo 'This a test via symlink.' > symlink/three.txt

./bar/two.txt
1:This is another test.

./foo/one.txt
1:This is a test.
ERR: File ./symlink failed to load: Invalid argument.

I tried relative and absolute symlinks but got the same 'invalid argument' error.

ggreer added a commit that referenced this issue Apr 18, 2012
@ggreer
Copy link
Owner

ggreer commented Apr 18, 2012

Whoops. I've been using --follow so I never noticed.

@ggreer ggreer closed this as completed Apr 18, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants