| Crates.io | pathdedup |
| lib.rs | pathdedup |
| version | 1.0.0 |
| created_at | 2025-03-25 17:34:53.906491+00 |
| updated_at | 2025-12-06 17:53:57.628938+00 |
| description | Output $PATH with all duplicate entries dropped |
| homepage | |
| repository | https://app.radicle.xyz/nodes/radicle.liw.fi/rad%3Az3uBEubocQ9kJANPvMAo6z5ZhhaFh |
| max_upload_size | |
| id | 1605547 |
| size | 18,673 |
With a complicated Unix shell setup, the PATH environment variable
can end up being long, with many components. pathedup outputs an
equivalent value for PATH, but with duplicate entries removed.
$ echo "$PATH"
/sbin:/usr/sbin:/bin:/usr/bin
$ pathdedup
/sbin:/bin
In this case, /bin is a symbolic link to /usr/bin, so only /bin
is kept.