Ticket #465 (closed defect: fixed)
smart+question
| Reported by: | benworld | Owned by: | arnaud_lb |
|---|---|---|---|
| Priority: | normal | Milestone: | alternc-0.9.3.1 |
| Component: | Shell-scripts et binaires | Version: | mailman-1.5 |
| Severity: | major | Keywords: | |
| Cc: |
Description
Version : do_domaines.sh,v 1.11 2005/03/10 17:30:31 benjamin Exp $
Quand on crée un sous domaine, on a cette erreur :
awk: print substr($1 awk: syntax error awk: cmd. ligne:1: print substr($1 awk: cmd. ligne:1: unexpected newline or end of string
tout pareil quand on le supprime.
ADDITIONAL INFORMATION: Simplement changer ligne 469 : INITIALE_USER=$echo $USER | $awk {'print substr($1, 1, 1)'} par : INITIALE_USER=$echo $USER | $awk '{print substr($1, 1, 1)}'
et ligne 518: INITIALE_USER=$echo $USER | $awk {'print substr($1, 1, 1)'} par : INITIALE_USER=$echo $USER | $awk '{print substr($1, 1, 1)}'
Change History
comment:2 Changed 8 years ago by benworld
j'ai ce probleme avec ksh .... comprend pas, en tout cas, c'est pas propre
comment:3 Changed 8 years ago by arnaud_lb
- Owner changed from anonymous to arnaud_lb
- Status changed from new to closed
- Resolution set to fixed
- Milestone set to 0.9.3.1
C'est corrigé dans le CVS
comment:4 Changed 7 years ago by Martha
- Type set to defect
- Summary changed from do_domaine.sh, impossible de creer les alias dans dns to smart+question

j'ai pas ce problème, mais c'est vrai que le $awk {'print substr($1, 1, 1)'} est bisard. J'ai fait un essai en console, "echo test | awk {'print substr($1, 1, 1)'}" sous bash retourne une erreur, mais pas sous ksh. Peut être que le problème vient de là ?