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

[Patch] trap: exit: invalid signal specification

From
S.Çağlar Onur <caglar@pardus.org.tr>
Date
Jun 24, 2006, 01:10 UTC
Message-ID
<200606240410.18334.caglar@pardus.org.tr>
Hi;
This tiny patch is needed to solve

caglar@zangetsu ~ $ git-clone /usr/bin/git-clone: line 121: trap: exit: invalid signal specification

error under tr_TR.UTF-8 (and other Turkic locales). For these locales upper(i) != I .

P.S: If needed please CC me, i'm not subscribed to list
Signed-off-by: S.Çağlar Onur <caglar@pardus.org.tr>
---

diff -ur git-1.4.0.orig/git-clone.sh git-1.4.0/git-clone.sh --- git-1.4.0.orig/git-clone.sh 2006-06-10 22:41:54.000000000 +0300 +++ git-1.4.0/git-clone.sh      2006-06-24 03:54:49.000000000 +0300

@@ -205,7 +205,7 @@
 [ -e "$dir" ] && echo "$dir already exists." && usage
 mkdir -p "$dir" &&
 D=$(cd "$dir" && pwd) &&
-trap 'err=$?; cd ..; rm -r "$D"; exit $err' 0
+trap 'err=$?; cd ..; rm -r "$D"; EXIT $err' 0
 case "$bare" in
 yes)
        GIT_DIR="$D" ;;
-- 
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!
Next: Junio C Hamano
Message 1 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.