Bug 1140 - SSH :Unable to set a env variable
Summary: SSH :Unable to set a env variable
Status: CLOSED INVALID
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh (show other bugs)
Version: 3.6.1p2
Hardware: Other Linux
: P2 normal
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-26 17:40 AEDT by ashok
Modified: 2006-10-07 11:43 AEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.