Re: [PATCH] bash prompt: test the prompt with newline in repository path
- From
Johannes Sixt <j6t@kdbg.org>
- Date
- Aug 16, 2013, 19:16 UTC
- Message-ID
- <520E7A81.5080302@kdbg.org>
- In-Reply-To
- <1376649395-24363-1-git-send-email-szeder@ira.uka.de>
Am 16.08.2013 12:36, schrieb SZEDER Gábor:
Show 5 quoted lines
> +repo_with_newline='repo > +with > +newline' > + > +test_expect_success 'prompt - with newline in path' '
This test must be skipped when the filesystem does not support LF in file names. Cf. the FUNNYNAMES prerequisite in t3600-rm.sh.
Show 10 quoted lines
> + printf " (master)" >expected && > + git init "$repo_with_newline" && > + test_when_finished "rm -rf \"$repo_with_newline\"" && > + mkdir "$repo_with_newline"/subdir && > + ( > + cd "$repo_with_newline/subdir" && > + __git_ps1 >"$actual" > + ) && > + test_cmp expected "$actual" > +'
-- Hannes