feature request: use HOME before getpwnam() in misc.c

pattonme at yahoo.com pattonme at yahoo.com
Fri May 19 21:34:34 AEST 2017

I'm using bash. The shell does the correct thing. 
Sorry  didn't give the use case clearly. 

I'm talking about the use of tilde inside client config. ‎The example was to illustrate desired behavior. Ssh itself does not eval tilde with any consideration for environment. That is the problem. 

  Original Message  
From: Gert Doering
Sent: Friday, May 19, 2017 02:19
To: matthew patton
Cc: openssh-unix-dev at mindrot.org
Subject: Re: feature request: use HOME before getpwnam() in misc.c


On Thu, May 18, 2017 at 09:51:04PM +0000, matthew patton wrote:
> What is the use case?
> HOME=longpath_to_config1
> ssh -i ~/.ssh/key1
> HOME=longpath_to_config2
> ssh -i ~/.ssh/key2

If you run things like that, the "~" is not expanded by ssh but by your shell.

Try "echo ~/"...

Barking up the wrong tree...

USENET is *not* the non-clickable part of WWW!
Gert Doering - Munich, Germany gert at greenie.muc.de
fax: +49-89-35655025 gert at net.informatik.tu-muenchen.de

More information about the openssh-unix-dev mailing list