[ Note that I can live with this problem; I'm just trying to scope it
better for other users of Apache. ]
> Will SCO's sh accept a dash if it's escaped? E.g.,
> "alpha\-omega=1"?
>
No:
# fred\-1=jim
fred-1=jim: not found
# alpha\-omega=1
alpha-omega=1: not found
It does seem to be the shell startup that baulks:
bash# csh
# setenv a-b 1
# env | grep a-b
a-b=1
# /bin/sh
a-b=1: is not an identifier
bash (see below for version) silently ignores the problem variable:
# bash# csh
# setenv a-b 1
# /usr/local/bin/bash
bash# env | grep a-b
bash#
Note: I incorrectly reported that bash would accept the hyphen - what
it does accept is export fred-jim=1, but silently ignores it.
bash# help | head -1
GNU bash, version 1.13.1-CWRU
bash# alf-bert=1
bash: alf-bert=1: command not found
bash# export alf-bert
bash# env | grep alf
bash# alf-bert=1
bash: alf-bert=1: command not found
bash# alf\-bert=1
bash: alf-bert=1: command not found
bash# export alf-bert=1
bash# env | grep alf
bash#
bash# export true=false
bash# env | grep true
true=false
A later bash on Linux also rejects the - but I don't have a csh to
quickly load the environment:
saracen:~# help | head -1
GNU bash, version 1.14.4(1)
saracen:~# fred-jim=1
bash: fred-jim=1: command not found
saracen:~# fred\-jim=1
bash: fred-jim=1: command not found
--
David Woolley - Office: David Woolley <[EMAIL PROTECTED]>
BTS Home: <[EMAIL PROTECTED]>
Wallington TQ 2887 6421
England 51 21' 44" N, 00 09' 01" W (WGS 84)