Bug 21923 - regex or regexp
Summary: regex or regexp
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: libshell (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Alexey Gladkov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-12 17:54 MSD by barabashka
Modified: 2009-10-12 18:15 MSD (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description barabashka 2009-10-12 17:54:41 MSD
shell-ip-address
unbound-variable regexp

# Regexp for single byte
readonly regex_byte='([01]?[0-9][0-9]?|2[0-4][0-9]|25[0-5])'

# Regexp for 4-byte address
readonly regex_ipaddr="$regexp_byte(\.$regexp_byte){3}"
                             ^              ^
Comment 1 Alexey Gladkov 2009-10-12 17:59:47 MSD
Спасибо! сегодня исправлю.