(PUP-2867) Support ~ in file paths, allows to deploy to ~<user> directories

  Note: validation will let ~ pass, but munging will fail if the user
    does not exist since it calls File#expand_path
Ok. It would be to bad to have specific code for that in the file type
though. How about a wrapping method that would check for either
`absolute_path?` or beginning with `~`?
Le 1 juil. 2014 20:51, "Rob Reynolds" <notifications@github.com> a écrit :

> In lib/puppet/util.rb:
>
> > @@ -220,7 +220,7 @@ def which(bin)
> >    slash = '[\\\\/]'
> >    label = '[^\\\\/]+'
> >    AbsolutePathWindows = %r!^(?:(?:[A-Z]:#{slash})|(?:#{slash}#{slash}#{label}#{slash}#{label})|(?:#{slash}#{slash}\?#{slash}#{label}))!io
> > -  AbsolutePathPosix   = %r!^/!
> > +  AbsolutePathPosix   = %r!^[/~]!
>
> I agree with @adrienthebo <https://github.com/adrienthebo> - while this
> would be really awesome to get, with it being non-deterministic it could
> cause issues.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/puppetlabs/puppet/pull/2820/files#r14422468>.
>