GitXplorerGitXplorer
M

wslpath

public
18 stars
2 forks
1 issues

Commits

List of commits on branch master.
Unverified
08fd0555911efa2e8ba65a9623e27fad3f37d430

Add Example.

MMilly committed 8 years ago
Unverified
1315e8d4560e980640347c6314d209f696be4644

Wrote table.

MMilly committed 8 years ago
Unverified
c211f42ffa9782f97afc9c9fe0896ee9a62bf37f

Initial import.

MMilly committed 8 years ago
Unverified
8b9dc9662f3134dfae048cba19d6105511541925

Initial commit

MMilly committed 8 years ago

README

The README file for this repository.

wslpath

Convert Unix and Windows format paths in WSL.

Example

Usage is similar to cygpath.exe.

C:\Users\alice>bash -c 'wslpath -u foo\\bar.txt'
foo/bar.txt

C:\Users\alice>bash -c 'wslpath -ua foo\\bar.txt'
/mnt/c/Users/alice/foo/bar.txt

C:\Users\alice>bash -c 'wslpath -ua \\baz'
/mnt/c/baz

C:\Users\alice>bash -c 'wslpath -w /mnt/c/baz'
C:\baz

C:\Users\alice>bash -c 'cd /tmp; wslpath -w foo'
wslpath: error: not a windows mount point: foo

Usage

wslpath (-d|-m|-u|-w|-t TYPE) [-f FILE] [OPTION]... NAME...

Options

Output type options

Option Description
-d, --dos like --windows (for compatibility)
-m, --mixed like --windows, but with regular slashes (C:/WINNT)
-u, --unix (default) print Unix form of NAMEs (/mnt/c/winnt)
-w, --windows print Windows form of NAMEs (C:\WINNT)
-t, --type=TYPE print TYPE form: 'dos', 'mixed', 'unix', or 'windows'

Path conversion options

Option Description
-a, --absolute output absolute path
-l, --long-name no effect (for compatibility)
-p, --path NAME is a PATH list (i.e., '/bin:/usr/bin')
-s, --short-name no effect (for compatibility)

Other options

Option Description
-f, --file=FILE read FILE for input; use - to read from STDIN
-i, --ignore ignore missing argument