[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
two ESC . in a row on a fresh shell kills it
From: |
Dan Jacobson |
Subject: |
two ESC . in a row on a fresh shell kills it |
Date: |
Thu, 20 Feb 2014 13:18:03 +0800 |
Try
su - nobody #(pristine account)
then type :<RET>
then type ESC . ESC .
Whammo! The shell dies!
The second ESC . acts like ^D.
# su - nobody
No directory, logging in with HOME=/
nobody@jidanni5:/$ cd /tmp
nobody@jidanni5:/tmp$ script
Script started, file is typescript
nobody@jidanni5:/tmp$ :
nobody@jidanni5:/tmp$ :Script done, file is typescript
$ cat -v typescript
Script started on Thu Feb 20 13:10:28 2014
nobody@jidanni5:/tmp$ :^M
nobody@jidanni5:/tmp$ :
Script done on Thu Feb 20 13:10:33 2014
nobody@jidanni5:/tmp$ echo $BASH_VERSION
4.3.0(1)-rc2
- two ESC . in a row on a fresh shell kills it,
Dan Jacobson <=