🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #1115

Stuff running in subshells can be annoying

#1115
From: Andrew Thomas
Date: Mon, 08 Jan 1990 14:11
18 lines
843 bytes
I have a simple function:

function restart ()
  {
    eval `jobs | fgprg $1`
  }

which used to work in bash 1.03.  It seems now that stuff in `` or $()
gets run in a subshell in 1.04 where there aren't really any jobs.  Is
this fixable?

Am I sadly out to lunch on this diagnosis? :-)

--

Andrew Thomas
andrewt@watsnew.waterloo.edu	Systems Design Eng.	University of Waterloo
"If a million people do a stupid thing, it's still a stupid thing." - Opus
Technical Details
Message-ID: <ANDREWT.90Jan8091138@watnow.waterloo.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watcgl!andrewt

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watcgl!andrewt
From: andrewt@watnow.waterloo.edu (Andrew Thomas)
Newsgroups: gnu.bash.bug
Subject: Stuff running in subshells can be annoying
Message-ID: <ANDREWT.90Jan8091138@watnow.waterloo.edu>
Date: 8 Jan 90 14:11:38 GMT
Sender: daemon@watcgl.waterloo.edu
Organization: University of Waterloo, Waterloo, Ontario, Canada
Lines: 18