Skip to content

Lightweight alternative to GNU coreutils "realpath" binary for macOS

License

Notifications You must be signed in to change notification settings

mojotx/realpath

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wrapper for realpath(3) system call on macOS

The readlink utility that is part of the GNU/Linux operating system lets you canonicalize a filename in a shell script, e.g., readlink -f $0.

Unfortunately, the readlink that comes with macOS does not do that, but macOS does provide a realpath(3) system call that can essentially do the same thing. This is just a simple C wrapper around that system call.

About

Lightweight alternative to GNU coreutils "realpath" binary for macOS

Resources

License

Stars

Watchers

Forks

Packages

No packages published