Ignore:
Timestamp:
11/11/2009 15:59:06 (3 years ago)
Author:
ccowart
Message:

Defining $sed_i_cmd that deals with OS-specific logic for whether
-i must take a flag and whether it should be a separate shell word. Also
making the use of ${sed_cmd} consistent (there were some occurrences of
sed without the variable wrapper).

Fixes #98

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/confmancommon.sh.in

    r462 r491  
    7676    mktemp_dir="mktemp -d -t confman" 
    7777    sed_cmd="sed -E" 
     78    sed_i_cmd="${sed_cmd} -i \"\"" 
    7879    stat_cmd="stat -f" 
    7980    stat_opts="mode=%Mp%Lp owner=%Su group=%Sg" 
     
    8586    mktemp_dir="mktemp -t -d confman.XXXXXX" 
    8687    sed_cmd="sed -r" 
     88    sed_i_cmd="${sed_cmd} -i" 
    8789    stat_cmd="stat -c" 
    8890    stat_opts="mode=%a owner=%U group=%G" 
     
    9496    mktemp_dir="mktemp -d -t confman" 
    9597    sed_cmd="sed -E" 
     98    sed_i_cmd="${sed_cmd} -i \"\"" 
    9699    stat_cmd="stat -f" 
    97100    stat_opts="mode=%Mp%Lp owner=%Su group=%Sg" 
Note: See TracChangeset for help on using the changeset viewer.