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

readlink: illegal option -- f #2

Open
massipasquesi opened this issue Mar 5, 2018 · 1 comment
Open

readlink: illegal option -- f #2

massipasquesi opened this issue Mar 5, 2018 · 1 comment
Labels
known issue problem already known OSX OSX issues

Comments

@massipasquesi
Copy link
Member

Error:

readlink: illegal option -- f
usage: readlink [-n] [file ...]

I'm working around this ....

@massipasquesi massipasquesi added help wanted known issue problem already known and removed help wanted labels Mar 5, 2018
@massipasquesi
Copy link
Member Author

The problem seems to be for OSX users.
I found a solution in this stackoverflow post :
https://stackoverflow.com/questions/1055671/how-can-i-get-the-behavior-of-gnus-readlink-f-on-a-mac#answer-4031502

brew install coreutils
greadlink -f file.txt

But after you have to say your system to use greadlink instead of readlink.
Alias not always do the stuff, better remove system readlink and put a symlink :
sudo ln -s <PATH_TO_greadlink> /bin/readlink

@massipasquesi massipasquesi added the OSX OSX issues label Mar 5, 2018
@massipasquesi massipasquesi reopened this Nov 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
known issue problem already known OSX OSX issues
Projects
None yet
Development

No branches or pull requests

1 participant