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

cg-help question

From
KGKumar Gala <kumar.gala@freescale.com>
Date
Aug 18, 2005, 14:48 UTC
Message-ID
<31C299E0-1EE6-47C8-AE99-E7BEBCC5F01F@freescale.com>
cg-help has the following in it
print_command_listing()
{
         for command in "$@"; do
                 [ -f "$command" -a ! -L "$command" ] || continue
                 cmdname=$(basename $command)
...
}

I was wondering what the [ -f "$command" -o ! -L "$command" ] is trying to test for. In my install the cg-commands are actually symlinks. And this test breaks cg-help from reporting the command list properly.

thanks
- kumar
Message 1 of 1 in “cg-help question”
  1. Kumar GalaAug 18, 2005

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.