summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLibravatar Chris Ridd <chris.ridd@isode.com>2008-06-11 14:09:19 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-06-12 22:20:18 -0700
commitfe22e5420ee547bac58481ed1a868f4cd39ad128 (patch)
treef18c3d179ec5a8a90ed2569ffa5033880d99e24b /Documentation
parentuser-manual: describe how higher stages are set during a merge (diff)
downloadtgif-fe22e5420ee547bac58481ed1a868f4cd39ad128.tar.xz
Improve sed portability
The behaviour of "sed" on an incomplete line is unspecified by POSIX, and On Solaris it apparently fails to process input that doesn't end in a LF. Consequently constructs like re=$(printf '%s' foo | sed -e 's/bar/BAR/g' $) cause re to be set to the empty string. Such a construct is used in git-submodule.sh. Because the LF at the end of command output are stripped away by the command substitution, it is a safe and sane change to add a LF at the end of the printf format specifier. Signed-off-by: Chris Ridd <chris.ridd@isode.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions