3 # Sed portability notes
5 # - Only -e, -f, and -n are standard options
7 # - -i argument is of the form -i[ext]
8 # - extended regular expressions argument is -r
10 # - -i argument is of the form -i [ext]
11 # - extended regular expressions argument is -E
13 # Here we support a limited subset of the available sed capabilities,
14 # ensuring that all those supported by this script can be utilized
15 # regardless of the current platform.
17 # We accept -n, -e, -f, and -i with no backup extension. We support
18 # extended regular expressions using the -r argument. Note that extended
19 # regular expressions support may not be retained, depending upon the
20 # capabilities of the other platforms we wish to support, and we may need
21 # to reimplement -i internally in this script on some platforms.
24 source $
(dirname $0)/wrapper.sh
40 while getopts ne
:f
:$getopt_os opt
; do
50 saved
="$saved $inplace_arg"
53 saved
="$saved $extended_re_arg"
60 shift $
(($OPTIND - 1))