🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #654

functions in the background

#654
From: RoBeRt KaRp
Date: Thu, 05 Oct 1989 01:16
19 lines
880 bytes
I have the following function:

ecr () { local s=$1; shift; enscript -2r -fCourier${s} -P${LASER} $@ }

when I type 

ecr 4 foo &

I get a segmentation fault, however, if I leave off the & at the
end, it is ok.


		- Robi
 --
 Robert Karp :- robi@attila.esa.oz.AU -:               // /////
 {uunet,mcvax,ukc,nttlab}!munnari!attila.esa.oz!robi  // /////
 Snail: 15-17 Paraween Street,Cremorne, NSW 2090  \\ XX\XXX//
 Tel  : (+61) (02) 953 9488                        \X/\XXXX/
Technical Details
Message-ID: <8910050227.4536@munnari.oz.au>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!tut.cis.ohio-state.edu!attila.esa.oz.au!robi

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!tut.cis.ohio-state.edu!attila.esa.oz.au!robi
From: robi@attila.esa.oz.au (RoBeRt KaRp)
Newsgroups: gnu.bash.bug
Subject: functions in the background
Message-ID: <8910050227.4536@munnari.oz.au>
Date: 5 Oct 89 01:16:29 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 19