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

Re: [PATCH v3] shell: Rewrite documentation and improve error message

From
Ramkumar Ramachandra <artagnon@gmail.com>
Date
Aug 24, 2010, 12:35 UTC
Message-ID
<20100824123525.GA18641@kytes>
In-Reply-To
<AANLkTikeZTF5zZyRDtLfnPrtCYFH0WayXrJeCj8_VuC1@mail.gmail.com>
Hi Greg,
Greg Brockman writes:
> >  -                          "hint: ~/$COMMAND_DIR should exist "
> >  +                          "hint: ~/" $COMMAND_DIR " should exist "
> There's still a floating $.  (Recall, you're in C land here, not shell.)

Ugh. So sorry about this- I've been suffering from insomnia over the last few days.

-- 8< --
diff --git a/shell.c b/shell.c
index 6aade3d..b539cdf 100644
--- a/shell.c
+++ b/shell.c
@@ -154,7 +154,7 @@ int main(int argc, char **argv)
 		cd_to_homedir();
 		if (access(COMMAND_DIR, R_OK | X_OK) == -1) {
 			die("Interactive git shell is not enabled.\n"
-			    "hint: ~/" $COMMAND_DIR " should exist "
+			    "hint: ~/" COMMAND_DIR " should exist "
 			    "and have read and execute access.");
 		}
 		run_shell();
Previous: Greg BrockmanNext: Greg Brockman
Message 8 of 10 in “shell: Rewrite documentation and improve error message”
  1. shell: Rewrite documentation and improve error messageRamkumar Ramachandra, Aug 20, 2010
  2. Ramkumar RamachandraAug 20, 2010
  3. Greg BrockmanAug 22, 2010
  4. shell: Rewrite documentation and improve error messageRamkumar Ramachandra, Aug 22, 2010
  5. Greg BrockmanAug 23, 2010
  6. shell: Rewrite documentation and improve error messageRamkumar Ramachandra, Aug 24, 2010
  7. Greg BrockmanAug 24, 2010
  8. Ramkumar RamachandraAug 24, 2010
  9. Greg BrockmanAug 24, 2010
  10. Junio C HamanoAug 24, 2010

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.