[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
strange segmentation violation in connection with <<< redirection
From: |
Com MN PG P E B Consultant 3 |
Subject: |
strange segmentation violation in connection with <<< redirection |
Date: |
Thu, 3 Aug 2006 14:45:59 +0200 |
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:mn-pg-p-e-b-consultant-3.com@siemens.com
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- strange segmentation violation in connection with <<< redirection,
Com MN PG P E B Consultant 3 <=