sh-realpath icon indicating copy to clipboard operation
sh-realpath copied to clipboard

A portable, pure shell implementation of realpath

Results 8 sh-realpath issues
Sort by recently updated
recently updated
newest added

The `local` keyword is not 100% portable if `/bin/sh` is indeed the Bourne Shell, or if it is an alias to ksh93 (such as on Solaris / illumos), which uses...

Dear Michael, I have found this project while searching for a pure perl implementation of realpath. I was curious to see your tests and I have replaced the body of...

Hi, Thanks for this small project closing the gap between different operating systems. I'm thinking about replacing [our implementation in native-packager](https://github.com/sbt/sbt-native-packager/blob/master/src/main/resources/com/typesafe/sbt/packager/archetypes/bash-template#L12-L65) with yours. However there's no support for cygwin. I'm...

emulate readlink -m related to Issue #3

stat(1) is not posix compatible. emulated readlink using ls

At the moment, `canonicalize_path` doesn't seem to function as desired _without_ `resolve_symlinks`: ``` $ ln -s a-dir a-link $ cd a-link $ pwd a-link $ canonicalize_path . /path/to/a-dir $ canonicalize_path...

realpath does not offer emulation for the equivalent of `readlink -m`. Running realpath on a non-existent directory returns an empty string. From http://www.gnu.org/software/coreutils/manual/html_node/readlink-invocation.html#readlink-invocation ‘-m’ ‘--canonicalize-missing’ Activate canonicalize mode. If any...

Reference: [Solaris User Commands](http://docs.oracle.com/cd/E26502_01/html/E29030/index.html) It would be nice to have a workaround included. The algorithm might look like: ``` if has_command readlink; then realpath_readlink() { ; } elsif has_command greadlink;...

enhancement