close
Skip to content

interp: support pwd flags like -P #724

@amancevice

Description

@amancevice

I use this repo indirectly through go-task and noticed an unexpected result when executing the command pwd -P. The issue is outlined in go-task#533.

In essence, when executed from a symlinked directory, pwd -P outputs the symlink and not the actual physical location on disk.

Example:

mkdir real-dir
ln -s real-dir link-dir
cd link-dir
pwd -P
# => Expected: /path/to/real-dir
# => Actual: /path/to/link-dir

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions