VisionSystemsInc / VisionSystemsInc/vsi_common

`real_path ''` behaves differently on macOS

Open
#402 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
8
Forks
9
Avg merge
36m
Merged PRs (30d)
1

Description

On macOS, real_path '' outputs $PWD/ (with a slash appended); whereas realpath actual (which real_path uses when it's available) errors with:

$ real_path ''
realpath: '': No such file or directory

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the real_path command implementation and examining how it handles an empty argument on macOS, especially when it delegates to realpath. Reproduce the reported command and compare its behavior with realpath ''. Done means the empty argument no longer produces a different result from the available realpath behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.