Bug fix: Fix tilde expansion in ssh urls when the tilde is the last character in the url. Thanks, Grond for the patch.
This commit is contained in:
parent
a9bf2a6cad
commit
5193aae385
3 changed files with 6 additions and 0 deletions
|
@ -187,6 +187,7 @@ expandTilde = expandt True
|
|||
expandt True ('~':'/':cs) = do
|
||||
h <- myHomeDir
|
||||
return $ h </> cs
|
||||
expandt True "~" = myHomeDir
|
||||
expandt True ('~':cs) = do
|
||||
let (name, rest) = findname "" cs
|
||||
u <- getUserEntryForName name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue