Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #11742

Re: Bash crash

Path csiph.com!xmission!news.glorb.com!usenet.stanford.edu!not-for-mail
From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups gnu.bash.bug
Subject Re: Bash crash
Date Thu, 22 Oct 2015 08:33:07 -0400
Lines 16
Approved bug-bash@gnu.org
Message-ID <mailman.784.1445517194.7904.bug-bash@gnu.org> (permalink)
References <C2FB93DF99E5FD43B0413EDB326AE2AA2B942E8F@ESGSCMB107.ericsson.se> <56264216.2060606@case.edu> <C2FB93DF99E5FD43B0413EDB326AE2AA2B94421D@ESGSCMB107.ericsson.se> <CAP=cN8n2FKQB+OcB-VWtCcm9A-z5VueUA0XS0F3DgEE3iobUQw@mail.gmail.com> <C2FB93DF99E5FD43B0413EDB326AE2AA2B9445C1@ESGSCMB107.ericsson.se>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
X-Trace usenet.stanford.edu 1445517195 23683 208.118.235.17 (22 Oct 2015 12:33:15 GMT)
X-Complaints-To action@cs.stanford.edu
Cc "bug-bash@gnu.org" <bug-bash@gnu.org>
To Kai Wang X <kai.x.wang@ericsson.com>
Envelope-to bug-bash@gnu.org
Content-Disposition inline
In-Reply-To <C2FB93DF99E5FD43B0413EDB326AE2AA2B9445C1@ESGSCMB107.ericsson.se>
User-Agent Mutt/1.4.2.3i
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From 139.137.100.1
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.14
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <http://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
Xref csiph.com gnu.bash.bug:11742

Show key headers only | View raw


On Thu, Oct 22, 2015 at 02:39:43AM +0000, Kai Wang X wrote:
> The process named "com" launched by script command "com.sh start". Pls refer to the attached files. It looks easy, doesn't it?

It looks like a horrible mish-mash of legacy Bourne shell syntax,
edited later by another person using certain post-Bourne shell constructs
(note the inconsistent use of test and [ commands), with quoting failures
thrown in for good measure (lots of [ -e ${foo} ] commands).

I cringed at the `expr` all over the place, and stopped reading halfway
through.

The shebang is #!/bin/sh and it's using half-Bourne half-POSIX code, so
if you suspect a bug in bash, why not just let it run under some other
shell?  /bin/sh does not link to bash on most operating systems.  Not
even on all of the Linux-based operating systems.

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: Bash crash Greg Wooledge <wooledg@eeg.ccf.org> - 2015-10-22 08:33 -0400

csiph-web