Re: 3rd problem: Bug cross-compiling bash (with buildroot): mkbuiltins uses config.h

2005-04-12 Thread Chet Ramey
 The same problem occurs when compiling psize.c:
 
 It is compiled for the host with the defines in config.h,
 which are valid for the target environment only.
 
 Moreover, running psize.c on the host is irrelevant anyway:
 The size of a pipe on the host is not the same as the size of
 a pipe on the target...

Luckily, this provides only a last-ditch default.  Just about every
system should have the posix defines that provide the correct value.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Live...Laugh...Love
Chet Ramey, ITS, CWRU[EMAIL PROTECTED]http://tiswww.tis.cwru.edu/~chet/


___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash


Галерея_матрасов (от)

2005-04-12 Thread Максим Полуэктович ngoe





 , .
   
  


All1.jpg___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash


Shell exits when piping to undeclared function

2005-04-12 Thread Maxim Vexler
From: Maxim Vexler
To: bug-bash@gnu.org
Subject: Shell exits when piping to undeclared function

Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: i686-pc-linux-gnu-gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i686'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu'
-DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H  -I.  -I. -I./include
-I./lib  -march=athlon-xp -Os -pipe -fomit-frame-pointer
uname output: Linux HitSYNC 2.6.10-nitro2 #1 Thu Jan 6 12:22:15 IST
2005 i686 AMD Athlon(tm) XP 3200+ AuthenticAMD GNU/Linux
Machine Type: i686-pc-linux-gnu

Bash Version: 2.05b
Patch Level: 0
Release Status: release

Description:
Bash behaves in an oddly fashion when trying to pipe to non
existing function.
On some platforms it outputs a setpgid error while on others it
invokes an builtin exit or output command.

Other users reported this behavior reoccurs.
On the following distributions:
- Debian Testing
- Denian Sarge
- Gentoo
1. exits with the exit builtin.

On RH8
1. bash: child setpgid (12740 to 12732): Operation not permitted

On SUN
1. bash: child setpgid (25730 to 25726): Not owner

All the above with various kernel, bash and gcc versions.

A discussion on this issue (in Hebrew) can be found at the
following url :
http://whatsup.org.il/forum/22024

Repeat-By:

: | :() { :; }

   shell dump:
bash-2.05b$ echo $SHELL
/bin/bash
bash-2.05b$ echo $SHLVL
3
bash-2.05b$ $SHELL
bash-2.05b$ echo $SHLVL
4
bash-2.05b$ ls -l | function foo() { echo foo foo kaka; }
bash-2.05b$ exit
bash-2.05b$ echo $SHLVL
3

bash-2.05b$ $SHELL -l
[EMAIL PROTECTED] hq4ever $ echo $SHLVL
4
[EMAIL PROTECTED] hq4ever $ : | :() { :; }
[EMAIL PROTECTED] hq4ever $ logout
   comment : To avoid confusion, both the [exit]  the [logout] commands were
not typed by the user, they were self inputed by
the shell.


-- 
Cheers, 
Maxim Vexler (hq4ever).

Do u GNU ?


___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash


Bug (Metacharacters)...

2005-04-12 Thread Sergio Nery Simoes
Is this a bug (Metacharacter)?

Example:

$ touch a b c A B C
$ ls [A-Z]
A  b  B  c  C

$ bash --version
GNU bash, version 3.00.16(1)-release (i386-pc-linux-gnu)
Copyright (C) 2004 Free Software Foundation, Inc.

$ uname -a
Linux sergio 2.6.8-2-686 #1 Mon Jan 24 03:58:38 EST 2005 i686 GNU/Linux


Sergio Nery Simoes.


___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash


Re: Bug (Metacharacters)...

2005-04-12 Thread Chris F.A. Johnson
On Tue, 12 Apr 2005, Sergio Nery Simoes wrote:
Is this a bug (Metacharacter)?
Example:
$ touch a b c A B C
$ ls [A-Z]
A  b  B  c  C

$ bash --version
GNU bash, version 3.00.16(1)-release (i386-pc-linux-gnu)
Copyright (C) 2004 Free Software Foundation, Inc.

$ uname -a
Linux sergio 2.6.8-2-686 #1 Mon Jan 24 03:58:38 EST 2005 i686 GNU/Linux
What is your locale?
It probably collates in the order 'aAbBcCdD...zZ'.
--
Chris F.A. Johnson  http://cfaj.freeshell.org
=
Everything in moderation -- including moderation
___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash