Unexpected behavior of dbutil.c's expand_tilde functionality
Guilhem Moulin
guilhem at fripost.org
Fri Jul 31 23:07:23 AWST 2015
Hi list,
Helmut Grohne reported the following [0]:
> 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 [1], i.e., doesn't expand to user foo's
homedir as one could expect [2].
Cheers,
--
Guilhem.
[0] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=790125#27
[1] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_01
[2] https://www.gnu.org/software/libc/manual/html_mono/libc.html#Tilde-Expansion
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
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
mailing list