Unexpected behavior of dbutil.c's expand_tilde functionality
guilhem at fripost.org
Fri Jul 31 23:07:23 AWST 2015
Helmut Grohne reported the following :
> I note that the new tilde expansion functionality in the upstream
> release is a bit strange. If my own home is "/home/helmut", it will
> expand "~/foo" to "/home/helmut//foo" (note the double slash). Worse,
> it will expand expand "~otheruser/foo" to
> "/home/helmut/otheruser/foo", which does not match the general
> expectation of tilde expansion.
Not sure if that was intended or if that's a bug. In the former case,
it might be helpful to explicitly write that ‘~foo’'s expansion isn't
that of a POSIX compliant shell , i.e., doesn't expand to user foo's
homedir as one could expect .
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 819 bytes
Desc: Digital signature
Url : http://lists.ucc.gu.uwa.edu.au/pipermail/dropbear/attachments/20150731/f83a5e28/attachment.sig
More information about the Dropbear