Bug 1140

Summary: SSH :Unable to set a env variable
Product: Portable OpenSSH Reporter: ashok <ashok_kovai>
Component: sshAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED INVALID    
Severity: normal    
Priority: P2    
Version: 3.6.1p2   
Hardware: Other   
OS: Linux   

Description ashok 2005-12-26 17:40:37 AEDT
In OpenSSH_3.6.1p2 I tried this command I want a var to set and confirm as well . but this display none .

ssh localhost "sh -c var=tell;echo $var" 

Please advice.
Comment 1 Damien Miller 2005-12-26 20:11:55 AEDT
This is not a bug - you just need to be careful about quoting. E.g.:

$ ssh localhost "sh -c 'foo=bar;echo \$foo'"
bar

This is a function of your shell, not ssh. If in doubt, put what you are trying to do inside a shell script.
Comment 2 Darren Tucker 2006-10-07 11:43:54 AEST
Change all RESOLVED bug to CLOSED with the exception of the ones fixed post-4.4.