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

(unknown)

From
NWNathan Wendt <nawendt84@gmail.com>
Date
May 16, 2016, 15:58 UTC
Message-ID
<CAB3F6BwTSWe2cXUNmfN1EZJKOQLrq-rauBtCwpa8ikuVK+siNA@mail.gmail.com>

Recently I have run into an issue with the git-completion.tcsh script where an error would occur upon sourcing the file on login. The error that would occur was:

__git_tcsh_completion_version: Subscript out of range.

In taking a look at the script, I noticed that when the script parses the tcsh version that I am running it does not put the output into an array. Thus, when it attempts to access subscript 2 of __git_tcsh_completion_version it throws the above error. To correct this, I changed

set __git_tcsh_completion_version =  ` \echo ${tcsh} | \sed 's/\./ /g'`
to
set __git_tcsh_completion_version =  `( \echo ${tcsh} | \sed 's/\./ /g' )`

and the script runs correctly. I could not find others having issues with this in the forums so I am not sure if this is unique to my system or not. Thought I would pass it along.

For reference, I am running tcsh 6.17.00 on RHEL 6.8
Thanks.
Message 1 of 1 in “(unknown)”
  1. Nathan WendtMay 16, 2016

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.