Re: $? in the right side of a pipe

2010-09-07 Thread Greg Wooledge
On Mon, Sep 06, 2010 at 07:47:20PM -0400, Chet Ramey wrote:
> On 9/5/10 5:36 AM, Pierre Gaston wrote:
> > using the following:
> > 
> > false; : | echo $?
> > 
> > bash and ksh93 print 0
> > pdksh, dash and zsh print 1
> 
> It looks like bash and ksh93 wait for each command in a pipeline to finish
> and allow the intermediate commands to set $?, which, depending on timing,
> can be seen by subsequent commands in the pipeline.  The other shells must
> do something different.

Just as another data point, ksh88 (as shipped on HP-UX 10.20 as 'ksh')
prints 0.  ('sh' does too, but 'sh' on that system is mostly ksh88 also.)



Bug in German translation

2010-09-07 Thread henning
Configuration Information [Automatically generated, do not change]:
Machine: i486
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i486'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL
-DHAVE_CONFIG_H   -I.  -I../bash -I../bash/include -I../bash/lib   -g -O2 -Wall
uname output: Linux hobbes 2.6.32-24-generic #42-Ubuntu SMP Fri Aug 20
14:24:04 UTC 2010 i686 GNU/Linux
Machine Type: i486-pc-linux-gnu

Bash Version: 4.1
Patch Level: 5
Release Status: release

Description:
The German translation for "no such job" is wrong. Reported in Ubuntu
here:
https://launchpad.net/bugs/630772

Repeat-By:
Run "fg" in a German locale: "LANG=de fg"

Fix:
diff -u -r bash-4.1/po/de.po bash-4.1-translation-fixed/po/de.po
--- bash-4.1/po/de.po   2009-12-30 14:25:15.0 +0100
+++ bash-4.1-translation-fixed/po/de.po 2010-09-07 12:05:26.0 +0200
@@ -7,8 +7,8 @@
 "Project-Id-Version: bash 4.0\n"
 "Report-Msgid-Bugs-To: \n"
 "POT-Creation-Date: 2009-12-30 08:25-0500\n"
-"PO-Revision-Date: 2009-09-14 20:37+0200\n"
-"Last-Translator: Nils Naumann \n"
+"PO-Revision-Date: 2010-09-07 12:03+0100\n"
+"Last-Translator: Henning Eggers \n"
 "Language-Team: German \n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
@@ -239,7 +239,7 @@
 #: builtins/common.c:282
 #, c-format
 msgid "%s: no such job"
-msgstr "%s: Kein solche Job."
+msgstr "%s: Kein solcher Job."

 #: builtins/common.c:290
 #, c-format



Re: Bug in German translation

2010-09-07 Thread Chet Ramey
> Bash Version: 4.1
> Patch Level: 5
> Release Status: release
> 
> Description:
> The German translation for "no such job" is wrong. Reported in Ubuntu
> here:
> https://launchpad.net/bugs/630772
> 
> Repeat-By:
> Run "fg" in a German locale: "LANG=de fg"

Thanks.  I already have an updated po file for bash-4.2.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/