From aleksey.yakovlev at gmail.com Wed Feb 1 23:07:58 2012 From: aleksey.yakovlev at gmail.com (Aleksey Yakovlev) Date: Wed, 1 Feb 2012 16:07:58 -0500 Subject: Linebreaks in variables? In-Reply-To: <20120131185533.33C0C9711F@rebar.astron.com> References: <20120131185533.33C0C9711F@rebar.astron.com> Message-ID: The same for me... my version is: tcsh 6.15.00 (Astron) 2007-03-03 (x86_64-suse-linux) options wide,nls,lf,dl,al,kan,sm,color,filec Thanks ~AY On Tue, Jan 31, 2012 at 1:55 PM, Christos Zoulas wrote: > On Jan 31, 11:53am, aleksey.yakovlev at gmail.com (Aleksey Yakovlev) wrote: > -- Subject: Linebreaks in variables? > > | I'm sure this question has been already asked and replied, but I couldn't > | find a working variant. > | > | Let's say the tcsh code calls any other code, which returns a multi-line > | text, separated by linebreaks. How to retain these linebreaks in the tsch > | code? For example: > | > | -------------- test.pl > | #!/usr/bin/perl > | print "abc\ndef\n"; > | > | -------------- test.csh > | #!/bin/tcsh > | set result = `test.pl` > | printf $res > | > | When I call the "test.csh" I want to get two lines: > | > | abc > | def > | > | but always get one: > | > | abc def > | > > There is $csubstnonl but does not seem to work for me. > > christos > > _______________________________________________ > Tcsh mailing list > Tcsh at mx.gw.com > http://mx.gw.com/mailman/listinfo/tcsh > From christos at zoulas.com Mon Feb 13 18:43:17 2012 From: christos at zoulas.com (Christos Zoulas) Date: Mon, 13 Feb 2012 11:43:17 -0500 Subject: tcsh-6.18.01 is now available Message-ID: <20120213164317.3C40D97122@rebar.astron.com> Hello, I was planning to release this tomorrow to mark 1 month after the 6.18.00 release and Valentine's day, but here you get it one day early... This is a bug fix release, and fixes the following issues which were discovered after 6.18.00 was released: 6. V6.18.01 - 20120214 5. fix interruptible wait again 4. ignore bogus compiler overflow message 3. cleanup ifdefs in utmp code, and provide default array entries 2. Ignore #machine entries in host.defs 1. Detect missing ) in gethost.c (Corinna Vinschen) You can find it: ftp://ftp.astron.com/pub/tcsh-6.18.01.tar.gz ftp://ftp.astron.com/pub/patch1.gz Best, christos From h.m.brand at xs4all.nl Mon Feb 13 18:55:46 2012 From: h.m.brand at xs4all.nl (H.Merijn Brand) Date: Mon, 13 Feb 2012 17:55:46 +0100 Subject: tcsh-6.18.01 is now available In-Reply-To: <20120213164317.3C40D97122@rebar.astron.com> References: <20120213164317.3C40D97122@rebar.astron.com> Message-ID: <20120213175546.30ce98a8@pc09.procura.nl> On Mon, 13 Feb 2012 11:43:17 -0500, christos at zoulas.com (Christos Zoulas) wrote: > Hello, > > I was planning to release this tomorrow to mark 1 month after the 6.18.00 > release and Valentine's day, but here you get it one day early... > > This is a bug fix release, and fixes the following issues which > were discovered after 6.18.00 was released: > > 6. V6.18.01 - 20120214 > 5. fix interruptible wait again > 4. ignore bogus compiler overflow message > 3. cleanup ifdefs in utmp code, and provide default array entries > 2. Ignore #machine entries in host.defs > 1. Detect missing ) in gethost.c (Corinna Vinschen) > > You can find it: > > ftp://ftp.astron.com/pub/tcsh-6.18.01.tar.gz ftp://ftp.astron.com/pub/tcsh/tcsh-6.18.01.tar.gz > ftp://ftp.astron.com/pub/patch1.gz -- H.Merijn Brand http://tux.nl Perl Monger http://amsterdam.pm.org/ using perl5.00307 .. 5.14 porting perl5 on HP-UX, AIX, and openSUSE http://mirrors.develooper.com/hpux/ http://www.test-smoke.org/ http://qa.perl.org http://www.goldmark.org/jeff/stupid-disclaimers/ From christos at zoulas.com Mon Feb 13 19:16:55 2012 From: christos at zoulas.com (Christos Zoulas) Date: Mon, 13 Feb 2012 12:16:55 -0500 Subject: tcsh-6.18.01 is now available In-Reply-To: <20120213175546.30ce98a8@pc09.procura.nl> from "H.Merijn Brand" (Feb 13, 5:55pm) Message-ID: <20120213171655.A55D49711F@rebar.astron.com> On Feb 13, 5:55pm, h.m.brand at xs4all.nl ("H.Merijn Brand") wrote: -- Subject: Re: tcsh-6.18.01 is now available | On Mon, 13 Feb 2012 11:43:17 -0500, christos at zoulas.com (Christos | Zoulas) wrote: | | > Hello, | > | > I was planning to release this tomorrow to mark 1 month after the 6.18.00 | > release and Valentine's day, but here you get it one day early... | > | > This is a bug fix release, and fixes the following issues which | > were discovered after 6.18.00 was released: | > | > 6. V6.18.01 - 20120214 | > 5. fix interruptible wait again | > 4. ignore bogus compiler overflow message | > 3. cleanup ifdefs in utmp code, and provide default array entries | > 2. Ignore #machine entries in host.defs | > 1. Detect missing ) in gethost.c (Corinna Vinschen) | > | > You can find it: | > | > ftp://ftp.astron.com/pub/tcsh-6.18.01.tar.gz | ftp://ftp.astron.com/pub/tcsh/tcsh-6.18.01.tar.gz | > ftp://ftp.astron.com/pub/patch1.gz Yup, sorry. a /tcsh/ is missing... christos From h.m.brand at xs4all.nl Mon Feb 13 19:17:13 2012 From: h.m.brand at xs4all.nl (H.Merijn Brand) Date: Mon, 13 Feb 2012 18:17:13 +0100 Subject: tcsh-6.18.01 is now available In-Reply-To: <20120213164317.3C40D97122@rebar.astron.com> References: <20120213164317.3C40D97122@rebar.astron.com> Message-ID: <20120213181713.148689b8@pc09.procura.nl> On Mon, 13 Feb 2012 11:43:17 -0500, christos at zoulas.com (Christos Zoulas) wrote: > Hello, > > I was planning to release this tomorrow to mark 1 month after the 6.18.00 > release and Valentine's day, but here you get it one day early... > > This is a bug fix release, and fixes the following issues which > were discovered after 6.18.00 was released: > > 6. V6.18.01 - 20120214 > 5. fix interruptible wait again > 4. ignore bogus compiler overflow message > 3. cleanup ifdefs in utmp code, and provide default array entries > 2. Ignore #machine entries in host.defs > 1. Detect missing ) in gethost.c (Corinna Vinschen) > > You can find it: > > ftp://ftp.astron.com/pub/tcsh-6.18.01.tar.gz > ftp://ftp.astron.com/pub/patch1.gz Do you want my HP-UX values for ftp://ftp.astron.com/pub/tcsh/Ported ? And if so, how? and what exactly Anything up to and including HP-UX 9 can safely be deleted My oldest box is 10.20, which I only keep alive to serve the world. Various versions of tcsh are available on http://mirrors.develooper.com/hpux/downloads.html I think I will put 6.18.01 up there too (soon(ish)) -- H.Merijn Brand http://tux.nl Perl Monger http://amsterdam.pm.org/ using perl5.00307 .. 5.14 porting perl5 on HP-UX, AIX, and openSUSE http://mirrors.develooper.com/hpux/ http://www.test-smoke.org/ http://qa.perl.org http://www.goldmark.org/jeff/stupid-disclaimers/ From christos at zoulas.com Mon Feb 13 19:23:54 2012 From: christos at zoulas.com (Christos Zoulas) Date: Mon, 13 Feb 2012 12:23:54 -0500 Subject: tcsh-6.18.01 is now available In-Reply-To: <20120213181713.148689b8@pc09.procura.nl> from "H.Merijn Brand" (Feb 13, 6:17pm) Message-ID: <20120213172354.E8CA49711F@rebar.astron.com> On Feb 13, 6:17pm, h.m.brand at xs4all.nl ("H.Merijn Brand") wrote: -- Subject: Re: tcsh-6.18.01 is now available | On Mon, 13 Feb 2012 11:43:17 -0500, christos at zoulas.com (Christos | Zoulas) wrote: | | > Hello, | > | > I was planning to release this tomorrow to mark 1 month after the 6.18.00 | > release and Valentine's day, but here you get it one day early... | > | > This is a bug fix release, and fixes the following issues which | > were discovered after 6.18.00 was released: | > | > 6. V6.18.01 - 20120214 | > 5. fix interruptible wait again | > 4. ignore bogus compiler overflow message | > 3. cleanup ifdefs in utmp code, and provide default array entries | > 2. Ignore #machine entries in host.defs | > 1. Detect missing ) in gethost.c (Corinna Vinschen) | > | > You can find it: | > | > ftp://ftp.astron.com/pub/tcsh-6.18.01.tar.gz | > ftp://ftp.astron.com/pub/patch1.gz | | Do you want my HP-UX values for ftp://ftp.astron.com/pub/tcsh/Ported ? | And if so, how? and what exactly | | Anything up to and including HP-UX 9 can safely be deleted | | My oldest box is 10.20, which I only keep alive to serve the world. Ok, just send diffs over and I will apply it. | Various versions of tcsh are available on | http://mirrors.develooper.com/hpux/downloads.html | | I think I will put 6.18.01 up there too (soon(ish)) Sure, sounds good. Best, christos From h.m.brand at xs4all.nl Tue Feb 14 19:41:16 2012 From: h.m.brand at xs4all.nl (H.Merijn Brand) Date: Tue, 14 Feb 2012 18:41:16 +0100 Subject: tcsh-6.18.01 is now available In-Reply-To: <20120213172354.E8CA49711F@rebar.astron.com> References: <20120213181713.148689b8@pc09.procura.nl> <20120213172354.E8CA49711F@rebar.astron.com> Message-ID: <20120214184116.550f4f08@pc09.procura.nl> On Mon, 13 Feb 2012 12:23:54 -0500, christos at zoulas.com (Christos Zoulas) wrote: > | Various versions of tcsh are available on > | http://mirrors.develooper.com/hpux/downloads.html > | > | I think I will put 6.18.01 up there too (soon(ish)) > > Sure, sounds good. Software depots uploaded for OS Arch Depot (once synced/mirrored) ----------- -------------- ----------------------------------------------------------- HP-UX 10.20 PA-RISC1 32bit http://mirrors.develooper.com/hpux/tcsh-6.18.01-10.20.sd.bz HP-UX 11.00 PA-RISC2 32bit http://mirrors.develooper.com/hpux/tcsh-6.18.01-11.00.sd.bz HP-UX 11.11 PA-RISC2 64bit http://mirrors.develooper.com/hpux/tcsh-6.18.01-11.11.sd.bz HP-UX 11.23 IA64 64bit http://mirrors.develooper.com/hpux/tcsh-6.18.01-11.23.sd.bz HP-UX 11.31 IA64 64bit http://mirrors.develooper.com/hpux/tcsh-6.18.01-11.31.sd.bz They are all compiled with as little as dynamic deps as possible (e.g. when libiconv is available, use libiconv.a instead of the share .sl or .so version) using $ ./configure --prefix=/pro --disable-nls-catalogs For HP-UX 10.20, I run into the limits of this old ANSI C compiler and other trouble. Patch at the bottom cc -c -Ae -z +Z +O2 +Onolimit +DAportable -I/pro/local/include -I/usr/local/include -I/usr/include/X11R6 -I. -I. -D_PATH_TCSHELL='"/pro/bin/tcsh"' sh.exp.c cpp: "values.h", line 27: warning 2001: Redefinition of macro MAXINT. cc: "sh.exp.c", line 325: error 1654: Expression type is too large for switch expression. cc: "sh.exp.c", line 370: error 1654: Expression type is too large for switch expression. make: *** [sh.exp.o] Error 1 Adding two casts "fixes" that. Looking at the defines, that'd be safe Next problem is cpp: "values.h", line 27: warning 2001: Redefinition of macro MAXINT. cc -c -Ae -z +Z +O2 +Onolimit +DAportable -I/pro/local/include -I/usr/local/include -I/usr/include/X11R6 -I. -I. -D_PATH_TCSHELL='"/pro/bin/tcsh"' sh.func.c cpp: "values.h", line 27: warning 2001: Redefinition of macro MAXINT. cc: "sh.func.c", line 1552: error 1588: "STRLINES" undefined. cc: "sh.func.c", line 1552: warning 563: Argument #2 is not the correct type. cc: "sh.func.c", line 1552: error 1588: "STRCOLUMNS" undefined. cc: "sh.func.c", line 1552: warning 563: Argument #2 is not the correct type. cc: "sh.func.c", line 1553: error 1588: "STRTERMCAP" undefined. cc: "sh.func.c", line 1553: warning 563: Argument #2 is not the correct type. cc: "sh.func.c", line 1562: warning 563: Argument #2 is not the correct type. cc: "sh.func.c", line 1562: warning 563: Argument #2 is not the correct type. make: *** [sh.func.o] Error 1 I have no patch for that. My try for it did not promote in tc.const.h creation I ended up adding those three to tc.const.h by hand edit Next problem is that gethost is compiled without CFLAGS, causing it to crash for a lack of ANSI features (enabled with -Ae) Now runs :) --8<--- tcsh-10.20.diff --- a/Makefile.in 2011-02-05 18:35:31 +0100 +++ b/Makefile.in 2012-02-14 18:15:06 +0100 @@ -449,7 +449,7 @@ pure:$(P) ${OBJS} gethost: gethost.c sh.err.h tc.const.h sh.h rm -f gethost - ${CC_FOR_GETHOST} -o gethost ${CPPFLAGS} $(srcdir)/gethost.c + ${CC_FOR_GETHOST} ${CFLAGS} -o gethost ${CPPFLAGS} $(srcdir)/gethost.c tc.defs.c: gethost host.defs @rm -f $@.tmp --- a/sh.exp.c 2011-12-25 16:21:50 +0100 +++ b/sh.exp.c 2012-02-14 17:40:53 +0100 @@ -322,7 +322,7 @@ exp2c(Char ***vp, int ignore) cleanup_push(p2, xfree); etracc("exp2c p2", p2, vp); if (!(ignore & TEXP_IGNORE)) - switch (i) { + switch ((int)i) { case EQEQ: i = eq(p1, p2); @@ -367,7 +367,7 @@ exp3(Char ***vp, int ignore) cleanup_push(p2, xfree); etracc("exp3 p2", p2, vp); if (!(ignore & TEXP_IGNORE)) - switch (i) { + switch ((int)i) { case GTR: i = egetn(p1) > egetn(p2); --- a/tc.const.c 2012-02-14 16:39:37 +0100 +++ b/tc.const.c 2012-02-14 18:22:00 +0100 @@ -457,7 +457,7 @@ Char STRLC_MONETARY[] = { 'L', 'C', '_', 'R', 'Y', '\0' }; Char STRNOREBIND[] = { 'N', 'O', 'R', 'E', 'B', 'I', 'N', 'D', '\0' }; -#if defined(SIG_WINDOW) || defined (_VMS_POSIX) +#if defined(SIG_WINDOW) || defined(SIGWINCH) || defined(SIGWINDOW) || defined(_VMS_POSIX) /* atp - problem with declaration of str{lines,columns} in sh.func.c (1277) */ Char STRLINES[] = { 'L', 'I', 'N', 'E', 'S', '\0'}; Char STRCOLUMNS[] = { 'C', 'O', 'L', 'U', 'M', 'N', 'S', '\0'}; -->8--- -- H.Merijn Brand http://tux.nl Perl Monger http://amsterdam.pm.org/ using perl5.00307 .. 5.14 porting perl5 on HP-UX, AIX, and openSUSE http://mirrors.develooper.com/hpux/ http://www.test-smoke.org/ http://qa.perl.org http://www.goldmark.org/jeff/stupid-disclaimers/ From christos at zoulas.com Tue Feb 14 20:27:38 2012 From: christos at zoulas.com (Christos Zoulas) Date: Tue, 14 Feb 2012 13:27:38 -0500 Subject: tcsh-6.18.01 is now available In-Reply-To: <20120214184116.550f4f08@pc09.procura.nl> from "H.Merijn Brand" (Feb 14, 6:41pm) Message-ID: <20120214182738.2E5FE9711F@rebar.astron.com> On Feb 14, 6:41pm, h.m.brand at xs4all.nl ("H.Merijn Brand") wrote: -- Subject: Re: tcsh-6.18.01 is now available | For HP-UX 10.20, I run into the limits of this old ANSI C compiler and other trouble. | Patch at the bottom | | cc -c -Ae -z +Z +O2 +Onolimit +DAportable -I/pro/local/include -I/usr/local/include -I/usr/include/X11R6 -I. -I. -D_PATH_TCSHELL='"/pro/bin/tcsh"' sh.exp.c | cpp: "values.h", line 27: warning 2001: Redefinition of macro MAXINT. | cc: "sh.exp.c", line 325: error 1654: Expression type is too large for switch expression. | cc: "sh.exp.c", line 370: error 1654: Expression type is too large for switch expression. | make: *** [sh.exp.o] Error 1 | | Adding two casts "fixes" that. Looking at the defines, that'd be safe good, I fixed that the same way. | Next problem is | | cpp: "values.h", line 27: warning 2001: Redefinition of macro MAXINT. | cc -c -Ae -z +Z +O2 +Onolimit +DAportable -I/pro/local/include -I/usr/local/include -I/usr/include/X11R6 -I. -I. -D_PATH_TCSHELL='"/pro/bin/tcsh"' sh.func.c | cpp: "values.h", line 27: warning 2001: Redefinition of macro MAXINT. | cc: "sh.func.c", line 1552: error 1588: "STRLINES" undefined. | cc: "sh.func.c", line 1552: warning 563: Argument #2 is not the correct type. | cc: "sh.func.c", line 1552: error 1588: "STRCOLUMNS" undefined. | cc: "sh.func.c", line 1552: warning 563: Argument #2 is not the correct type. | cc: "sh.func.c", line 1553: error 1588: "STRTERMCAP" undefined. | cc: "sh.func.c", line 1553: warning 563: Argument #2 is not the correct type. | cc: "sh.func.c", line 1562: warning 563: Argument #2 is not the correct type. | cc: "sh.func.c", line 1562: warning 563: Argument #2 is not the correct type. | make: *** [sh.func.o] Error 1 | | I have no patch for that. My try for it did not promote in tc.const.h creation | I ended up adding those three to tc.const.h by hand edit | | Next problem is that gethost is compiled without CFLAGS, causing it to crash | for a lack of ANSI features (enabled with -Ae) Seems that SIG_WINDOW is not defined when tc.const.c gets compiled? Strange. | Now runs :) Anyway I added all the changes! thanks, christos