diff --git a/man/dos-var.1 b/man/dos-var.1 new file mode 100644 index 0000000..f39b82e --- /dev/null +++ b/man/dos-var.1 @@ -0,0 +1,36 @@ +.Dd $Mdocdate$ +.Dt DOS-VAR 1 +.Os +.Sh NAME +.Nm dos-var +.Nd gets DOS environment variables from WSL +.Sh SYNOPSIS +.Nm +.Op Fl p +.Ar variable +.Sh +.Sh DESCRIPTION +The +.Nm +utility gets a DOS environment variable from within WSL. It can also convert paths to UNIX. +.Bl -tag -width Ds +.It Fl p , Fl -path +The target DOS variable contains a path, and will be converted. +.It Ar variable +The name of the target DOS variable. +.El +.Sh EXIT STATUS +.Bl -tag -width Ds +.It 1 +The target variable is empty. +.It 2 +No target variable was provided. +.El +.Sh EXAMPLES +Navigate to the Windows user directory: +.Pp +.Dl $ cd `dos-var -p USERPROFILE` +.Pp +.Sh Authors +.An -nosplit +.An Valerie Wolfe Aq Mt sleeplessval@gmail.com