diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-05-23 11:07:50 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-05-27 13:03:44 -0700 |
commit | 587089c1950199c3dcc14d159adb69be992d8d18 (patch) | |
tree | 97821e47a82aec601a37b802be51f2f6327fe90c /t/t9001-send-email.sh | |
parent | 3169e06daf297227362fb64a9d5c2cc451fefcbb (diff) | |
download | git-587089c1950199c3dcc14d159adb69be992d8d18.tar.gz git-587089c1950199c3dcc14d159adb69be992d8d18.tar.xz |
t9001: write $HOME/, not ~/, to help shells without tilde expansion
Even though it is in POSIX, we do not have to use it, only to hurt
shells that may lack the support.
The .mailrc test tries to define an alias in .mailrc in the home
directory by shell redirection, and then tries to see ~/.mailrc in
config is tilde-expanded by Git without help from shell. So the
creation should become $HOME/ to be portable for shells that may
lack tilde expansion but the reference should be done as "~/.mailrc".
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9001-send-email.sh')
-rwxr-xr-x | t/t9001-send-email.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh index 01c7ef4d9..a3663da49 100755 --- a/t/t9001-send-email.sh +++ b/t/t9001-send-email.sh @@ -1537,7 +1537,7 @@ test_expect_success $PREREQ 'sendemail.aliasfiletype=mailrc' ' test_expect_success $PREREQ 'sendemail.aliasfile=~/.mailrc' ' clean_fake_sendmail && - echo "alias sbd someone@example.org" >~/.mailrc && + echo "alias sbd someone@example.org" >"$HOME/.mailrc" && git config --replace-all sendemail.aliasesfile "~/.mailrc" && git config sendemail.aliasfiletype mailrc && git send-email \ |