bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bash turns off job_control when non-interactive, but also more..


From: jkh
Subject: bash turns off job_control when non-interactive, but also more..
Date: Sun, 18 Apr 2004 02:26:30 -0700 (PDT)

Hi guys,

We have some UNIX conformance test suites which are failing, specifically
they're failing on the %% job argument essentially as follows:

#!/bin/bash
cat &
kill -1 %% && echo I killed it || echo could not kill it

If you run this script, it will emit an error saying the %% argument to kill
is invalid and it could not kill the job.  Looking into builtins/kill.def,
you see that it specifically checks interactive and job_control (both of which
are 0 in the case of a shell script) and disables the code which would expand
the %% form in the script.  Are you sure this is correct?  The Open Group,
which uses this in a number of its job control test scripts, doesn't
appear to think so...  Thanks!

- Jordan

Configuration Information [Automatically generated, do not change]:
Machine: powerpc
OS: darwin7.0
Compiler: gcc
Compilation CFLAGS: -arch i386 -arch ppc -g -Os -pipe -no-cpp-precomp -arch 
i386 -arch ppc -pipe  -DPROGRAM='bash' -DCONF_HOSTTYPE='powerpc' 
-DCONF_OSTYPE='darwin7.0' -DCONF_MACHTYPE='powerpc-apple-darwin7.0' 
-DCONF_VENDOR='apple' -DSHELL -DHAVE_CONFIG_H -DMACOSX   -I.  
-I/SourceCache/bash/bash-29/bash -I/SourceCache/bash/bash-29/bash/include 
-I/SourceCache/bash/bash-29/bash/lib -arch i386 -arch ppc -g -Os -pipe 
-no-cpp-precomp -arch i386 -arch ppc -pipe
uname output: Darwin narcissus.queasyweasel.com 7.3.0 Darwin Kernel Version 
7.3.0: Fri Mar  5 14:22:55 PST 2004; root:xnu/xnu-517.3.15.obj~4/RELEASE_PPC  
Power Macintosh powerpc
Machine Type: powerpc-apple-darwin7.0

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

Description:
        [Detailed description of the problem, suggestion, or complaint.]

Repeat-By:
        [Describe the sequence of events that causes the problem
        to occur.]

Fix:
        [Description of how to fix the problem.  If you don't know a
        fix for the problem, don't include this section.]




reply via email to

[Prev in Thread] Current Thread [Next in Thread]