git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: SZEDER GáborNext: SZEDER Gábor
Message 2 of 4 in “bash prompt: test the prompt with newline in repository path”
  1. bash prompt: test the prompt with newline in repository pathSZEDER Gábor, Aug 16, 2013
  2. Johannes SixtAug 16, 2013
  3. bash prompt: test the prompt with newline in repository pathSZEDER Gábor, Aug 17, 2013
  4. Eric SunshineAug 16, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.