[Top][All Lists]

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

Re: set -n ruins shell

From: Chet Ramey
Subject: Re: set -n ruins shell
Date: Wed, 19 Sep 2001 16:08:57 -0400

> Machine Type: i386-redhat-linux-gnu
> Bash Version: 2.04
> Patch Level: 21
> Release Status: release
> Description:
> Hi. Everytime i use set -n it, alone or with an argument, it kills my shell.  
> All the shell will do after this is entered is redisplay the 
> PS1 prompt after I press return.  Even exit doesn't work, i have 
> to use ^D to close the terminal window. (I use rxvt v2.7.5 terminal windows 
> in X.)
> Repeat-By:
>       Open an rxvt window.  Enter set -n.

If you want to shoot yourself in the foot, bash will happily provide the
ammunition and possibly even load the gun for you.

`set -n' tells the shell to read but not execute commands.

I suppose that interactive shells could ignore `set -n', but they currently

``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)

Chet Ramey, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

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