OpenSSH-2.1: FROM in 'w' empty?
Simon Wilkinson
sxw at dcs.ed.ac.uk
Thu May 25 10:16:39 EST 2000
> > I patched configure and aclocal.m4. The method used works for both bash1
> > and bash2, so the changes should be backward compatible. I tested this
> > syntax on a couple of Redhat boxes and on Irix.
> > - ossh_result=`eval "echo "$"$ossh_varname"`
> > + eval ossh_result=\$${ossh_varname}
>
> I suspect this change will break a lot of other systems. Remember there
> are still machines out there that don't understand the $(command) syntax
> (my stock Solaris with /bin/sh is one of them).
>
> Is there another way to fix this and preserve the use of backticks?
Does
ossh_result=`eval echo \"\\\$$ossh_varname\"`
do the required trick? This works for me with Bash 1, 2 and Solaris sh.
Cheers,
Simon.
More information about the openssh-unix-dev
mailing list