With bash 2.05b (unfortunately I have no access to a more recent
version) under
Linux, there is a strange error, which can be demonstrated with the
following
 script - let's call it "segv":


#!/bin/bash --norc
schodo=""
fgrep -q :::: <<<$schodo



If this script is executed, I get the following error:


  segv: line 3: 23129 Segmentation fault      fgrep -q :::: <<< $schodo


The segmentation fault occurs when running fgrep, but the reason seems
not to
be fgrep, but bash: For example, I do NOT get a SEGV when I do one of
the
following changes:

(1) I run these commands in an interactive shell, I don't get a SEGV.
(2) I replace line 3 by what should be equivalent
        fgrep -q :::: <<<""
(3) When I initialize schodo with a non-null string, for example
       schodo=::

Is this a bug in bash? Is it still reproducible in version 3?

Ronald
-- 
Ronald Fischer (phone +49-89-63676431)
mailto:[EMAIL PROTECTED]


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

Reply via email to