🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
6 messages
6 total messages Started by Tony Galliford Wed, 01 May 1996 00:00
slrn barfs on Ctrl-Z (linux)
#21151
Author: Tony Galliford
Date: Wed, 01 May 1996 00:00
27 lines
1635 bytes
I can't get slrn to re-start after stopping it with a ^Z on linux.

After stopping slrn, I get a shell prompt, but the shell doesn't know
about the stopped process.  I.e. when I type "fg" to restart slrn, I get
"fg: no current job" from tcsh.  I've also tried with similar results
under bash.

I am able to get slrn to re-draw it's screen if I do "kill -CONT <pid>",
but slrn doesn't seem to get any keyboard input after that.  In fact, if
I type anything further, it's passed to the underlying shell!

Ideas on how to fix this, or even information on whether (or not) this
happens for others, would be helpful.

I'm currently using slrn 0.8.8, but this has been happeining since the
first version of slrn that I used (0.8.3, I think).  Currently running
on Linux 1.2.13-elf, tcsh 6.04.00 and bash 1.14.5(1) from a nearly standard
Slackware 3.0 setup.  If anyone wants further information, just ask.

Thanks,
Tony.

ObSlrnCoolThing: the automatic URL lookup from news articles in 0.8.8


Re: slrn barfs on Ctrl-Z (linux)
#21155
Author: Felix von Leitner
Date: Wed, 01 May 1996 00:00
18 lines
1103 bytes
On 1 May 1996 13:06:13 GMT, Tony Galliford <gallto@amy.apana.org.au> wrote:
> I can't get slrn to re-start after stopping it with a ^Z on linux.

Works like a breeze for me (I'm using the Z shell, not that darn
mega-broken bash -- in fact, I could bash bash for hours for the things
it did to me, not executing shell scripts correctly).  I once even had
to hack around in the sources to get bash to accept the exit error
codes.

Face it - bash sucks.

Use zsh.

Felix


Re: slrn barfs on Ctrl-Z (linux)
#21159
Author: Tony Galliford
Date: Thu, 02 May 1996 00:00
25 lines
1478 bytes
Apologies for following up to my own post, but (with help from John), the
problem has been solved...

On 1 May 1996 13:06:13 GMT, Tony Galliford <gallto@amy.apana.org.au> wrote:
>I can't get slrn to re-start after stopping it with a ^Z on linux.

Turns out that I was calling slrn from a shell script, and there seems to
be some sort of unusual interaction between the script and slrn that was
causing the problem.  Other shell-script-invoked programs are OK, and slrn
is fine when run directly.

Anyway, I'm happy now :)

Tony.
--
Tony Galliford       _--_|\   I really hate this damned machine
Canberra, Australia /      \   I wish that they would sell it.
Email:              \_.--.*/   It never does quite what I want
gallto@amy.apana.org.au   v        But only what I tell it.

    ***** This message consists of 100 % recycled electrons *****


Re: slrn barfs on Ctrl-Z (linux)
#21197
Author: John E. Davis
Date: Thu, 02 May 1996 00:00
47 lines
2261 bytes
On 1 May 1996 19:30:59 GMT, Felix von Leitner <leitner@xorn.prz.tu-berlin.de>
wrote:
 : On 1 May 1996 13:06:13 GMT, Tony Galliford <gallto@amy.apana.org.au> wrote:
 : > I can't get slrn to re-start after stopping it with a ^Z on linux.
 : 
 : Works like a breeze for me (I'm using the Z shell, not that darn
 : mega-broken bash -- in fact, I could bash bash for hours for the things
 : it did to me, not executing shell scripts correctly).  I once even had
 : to hack around in the sources to get bash to accept the exit error
 : codes.

The problem turned out to be that Tony was using slrn in a bash shell script:

      #!/bin/sh
      /usr/local/bin/slrn -C $*
      
When ^Z was pressed, the login shell sent the foreground process a signal
which both slrn and bash received.  Bash simply exited and slrn apparantly
stopped and disappeared into the background.

I believe that one should use:

      #!/bin/sh
      exec /usr/local/bin/slrn -C $*

An interesting difference between bash and sh is brought out by 0.8.8.1.
Pressing ^Z while running the preceeding script using the real sh suspends
the news reader.  However, for systems that use bash for sh, pressing ^Z
will produce the slrn message:

    "Suspension not allowed by shell."

Is bash wrong here?

Incidently, I think it is better to do away with such a simple script and
use an alias (csh):

      alias slrn 'slrn -C'

-- 
John E. Davis                   Center for Space Research/AXAF Science Center
617-258-8119                    MIT 37-662c, Cambridge, MA 02139
http://space.mit.edu/~davis


Re: slrn barfs on Ctrl-Z (linux)
#21202
Author: Chris Chiappa
Date: Fri, 03 May 1996 00:00
25 lines
1718 bytes
On 1 May 1996 19:30:59 GMT, Felix von Leitner <leitner@xorn.prz.tu-berlin.de> uttered:
>On 1 May 1996 13:06:13 GMT, Tony Galliford <gallto@amy.apana.org.au> wrote:
>> I can't get slrn to re-start after stopping it with a ^Z on linux.
>Works like a breeze for me (I'm using the Z shell, not that darn
>mega-broken bash -- in fact, I could bash bash for hours for the things
>it did to me, not executing shell scripts correctly).  I once even had
>to hack around in the sources to get bash to accept the exit error
>codes.
>Face it - bash sucks.
>Use zsh.
Than again, it works fine for me, and I'm using...you guessed it...BASH!
Thus, it's obviously not the shells fault.  At least, it is premature to pin
it on the shell at this point...


--

 _                                _                               _
|s|   Email: griffon+@cmu.edu    |n| Linux * X-Files * Team OS/2 |u|
|r|      Finger => PGP etc       |g|  Carnegie Mellon University |l|
|_|   http://www.snurgle.org/    |e|  /\\//\\//\\//\\//\\//\\//\ |_|


Re: slrn barfs on Ctrl-Z (linux)
#21282
Author: Edvard Majakari
Date: Sun, 05 May 1996 00:00
26 lines
1424 bytes
On 1 May 1996 13:06:13 GMT, Tony Galliford dumped the following to
news.software.readers:

>I can't get slrn to re-start after stopping it with a ^Z on linux.
>
>After stopping slrn, I get a shell prompt, but the shell doesn't know
>about the stopped process.  I.e. when I type "fg" to restart slrn, I get
>"fg: no current job" from tcsh.  I've also tried with similar results
>under bash.

With my config slrn stalls with ^Z. The window freezes (from X, that is). I
have to kill it with xkill or via command line... why's this? not that I'd
need it, though. With 1152x856 res and 4 virtual screens I use no more
only one window :)


-- 

//Ed       http://lodge.ton.tut.fi/~ed/
%
snarf snuffed!
(Another one of the more obfuscated kernel messages)


Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads