Philippe WILLEM
2000-Dec-21 12:49 UTC
Réf. : configure.in: Someone please show me a better way :)
If I remove all the export and change all the ' in ", it does work on
SCO
3.2v5.0.4
|--------+----------------------------->
| | Roumen Petrov |
| | <Roumen.Petrov at skal|
| | asoft.com> |
| | |
| | 21/12/00 13:10 |
| | |
|--------+----------------------------->
>----------------------------------------------------------------------------|
| |
| Pour : openssh-unix-dev at mindrot.org
|
| cc : (ccc : Philippe WILLEM/CER59/REC) |
| Objet : configure.in: Someone please show me a better way :) |
>----------------------------------------------------------------------------|
Q: What platform don't run this script:
----------------------------------------
#!/bin/sh
export X0='x0'
export X1a="$X0/1"
export X1b='$X0/1'
export X2a="$X1a/2"
export X2b='$X1b/2'
$SHELL <<EOF_2
$SHELL <<EOF_1
cat <<EOF
#define a "$X2a/aa"
#define b "$X2b/bb"
EOF
EOF_1
EOF_2
----------------------------------------
Output must be:
#define a "x0/1/2/aa"
#define b "x0/1/2/bb"
With bash and bash in sh mode on linux work.
What about other ..UX implementation ?
Genarated from autoconf variable in configure script like
libexecdir='${exec_prefix}/libexec'
is not expanded in script and substitution
s%@libexecdir@%$libexecdir%g
is usefull only for makefiles.
if script work file we can use ( about configure.in )
----------------------------------------
....
export prefix
export exec_prefix
export bindir
$SHELL <<EOF_2
$SHELL <<EOF_1
cat <<EOF
OpenSSH configured has been configured with the following options.
User binaries: ${bindir}
EOF
EOF_1
EOF_2
....
----------------------------------------
Is this idea better that:
E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
....
Roumen Petrov
2000-Dec-21 12:59 UTC
Réf. : configure.in: Someone please show me a better way :)
Sorry for mistake for sh file must begin with ------------------------------- X0='x0' X1a="$X0/1" X1b='$X0/1' X2a="$X1a/2" X2b='$X1b/2' export X0 export X1a export X1b export X2a export X2b ------------------------------ Without export don`t work on linux sh ( bash ) Philippe WILLEM wrote:> > If I remove all the export and change all the ' in ", it does work on SCO > 3.2v5.0.4 > > > > |--------+-----------------------------> > | | Roumen Petrov | > | | <Roumen.Petrov at skal| > | | asoft.com> | > | | | > | | 21/12/00 13:10 | > | | | > |--------+-----------------------------> > >----------------------------------------------------------------------------| > | | > | Pour : openssh-unix-dev at mindrot.org | > | cc : (ccc : Philippe WILLEM/CER59/REC) | > | Objet : configure.in: Someone please show me a better way :) | > >----------------------------------------------------------------------------| > > > > Q: What platform don't run this script: > ---------------------------------------- > #!/bin/sh > > export X0='x0' > > export X1a="$X0/1" > export X1b='$X0/1' > > export X2a="$X1a/2" > export X2b='$X1b/2' > > $SHELL <<EOF_2 > $SHELL <<EOF_1 > cat <<EOF > #define a "$X2a/aa" > #define b "$X2b/bb" > EOF > EOF_1 > EOF_2 > ---------------------------------------- > Output must be: > #define a "x0/1/2/aa" > #define b "x0/1/2/bb" > > With bash and bash in sh mode on linux work. > What about other ..UX implementation ? > > Genarated from autoconf variable in configure script like > libexecdir='${exec_prefix}/libexec' > is not expanded in script and substitution > s%@libexecdir@%$libexecdir%g > is usefull only for makefiles. > > if script work file we can use ( about configure.in ) > ---------------------------------------- > ..... > export prefix > export exec_prefix > export bindir > > $SHELL <<EOF_2 > $SHELL <<EOF_1 > cat <<EOF > OpenSSH configured has been configured with the following options. > User binaries: ${bindir} > EOF > EOF_1 > EOF_2 > ..... > ---------------------------------------- > > Is this idea better that: > E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` > .....
Gary E. Miller
2000-Dec-21 20:10 UTC
Réf. : configure.in: Someone please show me a better way :)
Yo Roumen! That now works on SCO. RGDS GARY --------------------------------------------------------------------------- Gary E. Miller Rellim 20340 Empire Ave, Suite E-3, Bend, OR 97701 gem at rellim.com Tel:+1(541)382-8588 Fax: +1(541)382-8676 On Thu, 21 Dec 2000, Roumen Petrov wrote:> Sorry for mistake for sh file must begin with > -------------------------------