Comment 3 for bug 84822

Revision history for this message
clemens fischer (ino-news) wrote :

there's a difference between the bsd and the linux versions of sed(1): "sed -E" in freebsd is "sed -r" in linux. a portable way of determining which platform the completer runs on is possible but propably not worth the trouble. i suggest adding a comment:

# linux option for extended regular expressions: `-r'
# equivalent freebsd option: `-E'
__bzr_sed_opts="-En" # or "-rn" on linux

then use ``sed ${__bzr_sed_opts}'' everywhere.