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

Re: [Patch] trap: exit: invalid signal specification

From
S.Çağlar Onur <caglar@pardus.org.tr>
Date
Jun 24, 2006, 12:54 UTC
Message-ID
<200606241555.03147.caglar@pardus.org.tr>
In-Reply-To
<7vejxf5ktc.fsf@assigned-by-dhcp.cox.net>
Cumartesi 24 Haziran 2006 05:50 tarihinde, Junio C Hamano şunları yazmıştı: 
> I am not quite sure what to make out this...  Do you mean your
> shell does not like the command "exit" spelled in lowercase
> under Turkic locale?

Sorry to not clear enough previously, for Turkic locales (tr_TR, az_AZ etc.) upper(i) != I. More detailed analysis can be found at http://www.i18nguy.com/unicode/turkish-i18n.html, "Why Applications Fail With The Turkish Language" section. This is the main reason of this problem.

According to its man page signals defined with uppercase letters but also different trap implementations may permit lowercase signal names as an extension.

As an example bash (v. 3.1.17) permits lowercase signal names but it converts this lowercase signal names into uppercase ones while interpreting the script. But for our "Turkish has 4 letter "I"s" problem this convert to uppercase one process fails but for bash invalid signal names not be considered a syntax error and do not cause the shell to abort.

Yours
-- 
S.Çağlar Onur <caglar@pardus.org.tr>
http://cekirdek.pardus.org.tr/~caglar/

Linux is like living in a teepee. No Windows, no Gates and an Apache in house!
Previous: Junio C HamanoNext: Matthias Lederhofer
Message 3 of 5 in “trap: exit: invalid signal specification”
  1. trap: exit: invalid signal specificationS.Çağlar Onur, Jun 24, 2006
  2. Junio C HamanoJun 24, 2006
  3. S.Çağlar OnurJun 24, 2006
  4. Matthias LederhoferJun 24, 2006
  5. S.Çağlar OnurJun 25, 2006

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.