Package: vserver-debiantools
Version: 0.3.4
Followup-For: Bug #409862

Although this bus is tagged 'patch', i can't see an answer to your last
question, so i'm writing this followup. Please ignore it if i'm wrong.

Ola said:
> But if you know a good way to accept
> 
> x
> xa
> x-a
> 
> but not
> 
> x-
> -a
> 
> as hostname, that would be great.

That should be 
[[:lower:][:digit:]]*(*([[:lower:][:digit:]_-])[[:lower:][:digit:]]))

However i don't know how to check the hostname lenght in the same regex
( so you need an extra check on ${#var} ).

Please use [:class:] instead of [a-z] as the latter is locale dependant
and, while it seems reverted on recent bash, i think i can remember that a
not-so-old release of bash broke it down ( well, the bash is/was right,
the scripts aren't ).

PS: Ola, are you working on this package these days ? If i'll have some
time on the next days i'd like to make some changes ( primarily move the
common functions in a /usr/lib script and make stripserver work with
non-legacy configurations ), so if you have a public repository/vs
please point me to it ( haven't found in /u/s/d/v-d/copyright ).


Ciao,
Gian Piero.

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.18.dfsg.1-11-king-1
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=UTF-8)

Versions of packages vserver-debiantools depends on:
ii  binutils                      2.17-3     The GNU assembler, linker and bina
ii  debootstrap                   0.3.3.2    Bootstrap a basic Debian system
ii  rsync                         2.6.9-2    fast remote file copy program (lik
ii  util-vserver                  0.30.211-6 user-space tools for Linux-VServer

vserver-debiantools recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to