Re: Fwd: Re: [SLUG] EXIT COMMAND

2000-12-10 Thread James Wilkinson

This one time, at band camp, Herbert Xu said:
>Harry Ohlsen <[EMAIL PROTECTED]> wrote:
>
>> I guess "ZZ" was intended to mean "the end", as in the end of the 
>> alphabet.  I remember when I was at uni 20 years ago it was a lot of fun to 
>> walk up to someone's terminal and type "vi" to see if they could get out of 
>> it.  Let's face it, it's not obvious that you should type ":" to get to a 
>> command line, either :-).
>
>Oh yeah, but it's even less obvious to get out of emacs :)

killall emacs from a different terminal works fine for me ;)

-- 
  "Fear leads to anger. Anger leads to hate. Hate leads to using
(o_ ' Windows NT for mission-critical applications." 
//\   -- What Yoda *meant* to say, Devin L. Ganger, scary.devil.monastery
v_/_  



-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



Re: Fwd: Re: [SLUG] EXIT COMMAND

2000-12-09 Thread David Fisher


> 
> Oh yeah, but it's even less obvious to get out of emacs :)
> -- 

Can't see the problem.  Clicking File then Exit Xemacs seems to work 
quite well on colossus.

 
-- 
David

-BEGIN GEEK CODE BLOCK-
Version: 3.12
GMU d++ s+:- a+ C++ UL P+ L+++ E W++ N o-- K w---
O-- M+ V- PS++ PE Y+ PGP- t 5-- X-- R- tv b DI++ D--
G e h r% y--
--END GEEK CODE BLOCK-- 





-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



Fwd: Re: Fwd: Re: [SLUG] EXIT COMMAND

2000-12-09 Thread Harry Ohlsen


> > I guess "ZZ" was intended to mean "the end", as in the end of the
> > alphabet.  I remember when I was at uni 20 years ago it was a lot of 
> fun to
> > walk up to someone's terminal and type "vi" to see if they could get 
> out of
> > it.  Let's face it, it's not obvious that you should type ":" to get to a
> > command line, either :-).
>
>Oh yeah, but it's even less obvious to get out of emacs :)

Not if you do lots of yoga.  It's easy to get the 
Ctrl-Alt-Meta-VulcanSleeperHold key combination happening then :-).




-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



Re: Fwd: Re: [SLUG] EXIT COMMAND

2000-12-09 Thread Anand Kumria

On Sun, Dec 10, 2000 at 12:50:29AM +, Herbert Xu wrote:
> Harry Ohlsen <[EMAIL PROTECTED]> wrote:
> 
> > I guess "ZZ" was intended to mean "the end", as in the end of the 
> > alphabet.  I remember when I was at uni 20 years ago it was a lot of fun to 
> > walk up to someone's terminal and type "vi" to see if they could get out of 
> > it.  Let's face it, it's not obvious that you should type ":" to get to a 
> > command line, either :-).
> 
> Oh yeah, but it's even less obvious to get out of emacs :)

$ emacs
Buffers Files Tools Edit Search Mule Help   
Welcome to GNU Emacs, one component of a Linux-based GNU system.

Get help   C-h  (Hold down CTRL and press h)
Undo changes   C-x u   Exit Emacs   C-x C-c
[...]

Damn those helpful programs that provide help to users upon startup.

Obscurity. We need more of it!

Anand

-- 
Linux.Conf.Au   --  http://linux.conf.au/
17th - 20th January,--  Alan Cox, David Miller,
Sydney, Australia   --  Tridge, maddog and you?



-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



Re: Fwd: Re: [SLUG] EXIT COMMAND

2000-12-09 Thread Herbert Xu

Harry Ohlsen <[EMAIL PROTECTED]> wrote:

> I guess "ZZ" was intended to mean "the end", as in the end of the 
> alphabet.  I remember when I was at uni 20 years ago it was a lot of fun to 
> walk up to someone's terminal and type "vi" to see if they could get out of 
> it.  Let's face it, it's not obvious that you should type ":" to get to a 
> command line, either :-).

Oh yeah, but it's even less obvious to get out of emacs :)
-- 
Debian GNU/Linux 2.2 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt



-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



Fwd: Re: [SLUG] EXIT COMMAND

2000-12-08 Thread Harry Ohlsen


>ZZ doesn't mean anything. :wq means :(command) w (write) q (quit)

I guess "ZZ" was intended to mean "the end", as in the end of the 
alphabet.  I remember when I was at uni 20 years ago it was a lot of fun to 
walk up to someone's terminal and type "vi" to see if they could get out of 
it.  Let's face it, it's not obvious that you should type ":" to get to a 
command line, either :-).




-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



Re: [SLUG] EXIT COMMAND

2000-12-07 Thread James Wilkinson

This one time, at band camp, Rodos said:

>On Thu, 7 Dec 2000, John Ryland wrote:
>
>> However vi is the only one true editor :)
>
>Ahmen brother! And Pearl is the language of the Gods. Linux is the OS of
>the GNU generation ...

the innernet will have you believe otherwise...

http://www.amherst.edu/~jtagnew/ed.html

-- 
 * dpkg ponders: 'C++' should have been called 'D'
(o_ '   -- #Debian
//\  
v_/_


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



Re: [SLUG] EXIT COMMAND

2000-12-07 Thread James Wilkinson

This one time, at band camp, Rodos said:

>Oh what a bugger that would be. I seam to be in the habbit of hitting ESC
>everytime I pause to think, bit like the typing version of saying um
>whilst talking.

I think mine is 'ls'. ;)

-- 
 * dpkg ponders: 'C++' should have been called 'D'
(o_ '   -- #Debian
//\  
v_/_


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



Re: [SLUG] EXIT COMMAND

2000-12-07 Thread James Wilkinson

This one time, at band camp, John Ryland said:
>
>I've occassionally used kwrite and noticed to exit you can just hit ESC, 
>that's one keystroke.

Not so good for the ex-vi user (or the vi user in ex mode), who'll hit
ESC to delete a few lines and delete more than they wanted.

-- 
 * dpkg ponders: 'C++' should have been called 'D'
(o_ '   -- #Debian
//\  
v_/_


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



Re: [SLUG] EXIT COMMAND

2000-12-07 Thread James Wilkinson

This one time, at band camp, Rodos said:

>Who uese :wq anyway, ZZ is one stroke less.

*sigh* but then you've gotta hit shift!  (he says, not realising that
the colon is shifted too)

-- 
 * dpkg ponders: 'C++' should have been called 'D'
(o_ '   -- #Debian
//\  
v_/_


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



Re: [SLUG] EXIT COMMAND

2000-12-06 Thread John Ryland


There's an autowrite option so you don't have to do the :w

Regards
John

On Thursday 07 December 2000 12:17, Pete wrote:
> Actually, I have in my .vimrc a map for F2 to :w :make ^Z which I find more
> useful in case I need to undo changes I just made.


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



Re: [SLUG] EXIT COMMAND

2000-12-06 Thread John Ryland


Also ZZ is easier that :x too. One less keystroke (the enter) and also less 
typos. ie :X

Regards
John

On Thursday 07 December 2000 08:48, Rodos wrote:
> On Thu, 7 Dec 2000, Pete wrote:
> > No-one seems to have mentioned :x which only saves if you've made changes
> > iirc.
>
> ZZ works the same, it is :x
>
> RodosZZ


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



Re: [SLUG] EXIT COMMAND

2000-12-06 Thread David


vi is proof that all geeks are masochists... I just haven't yet figured
out why *I* use it..

On Thu, 7 Dec 2000, Rodos wrote:

> On Thu, 7 Dec 2000, Pete wrote:
> 
> > No-one seems to have mentioned :x which only saves if you've made changes
> > iirc.
> 
> ZZ works the same, it is :x
> 
> RodosZZ
> 
> -- 
> [EMAIL PROTECTED] | ... the conclusion that the possibilities of computers
> Camion Technology | are very interesting - if they could be made to be
> +61 2 9873 5105   | more complicated by several orders of magnitude.
>   | [Richard Feynman 1959]
> 
> 
> 
> -- 
> SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
> More Info: http://slug.org.au/lists/listinfo/slug
> 



-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



Re: [SLUG] EXIT COMMAND

2000-12-06 Thread Rodos

On Thu, 7 Dec 2000, Pete wrote:

> No-one seems to have mentioned :x which only saves if you've made changes
> iirc.

ZZ works the same, it is :x

RodosZZ

-- 
[EMAIL PROTECTED] | ... the conclusion that the possibilities of computers
Camion Technology | are very interesting - if they could be made to be
+61 2 9873 5105   | more complicated by several orders of magnitude.
  | [Richard Feynman 1959]



-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



Re: [SLUG] EXIT COMMAND

2000-12-06 Thread Pete

Actually, I have in my .vimrc a map for F2 to :w :make ^Z which I find more
useful in case I need to undo changes I just made.

Pete


>> ZZ is better not only because it is 2 less keystrokes, but it's easier to
not
>> stuff up with a typo like :qw which I do fairly regularly when I'm maddly
>> hacking away and it breaks your rhythm. I'm going to have to see if I can
>> break my :wq habit.
>
>John why don't you give Pico a try, not such problems there.
>
>



-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



Re: [SLUG] EXIT COMMAND

2000-12-06 Thread Rodos

On Thu, 7 Dec 2000, John Ryland wrote:

> I've occassionally used kwrite and noticed to exit you can just hit ESC,

Oh what a bugger that would be. I seam to be in the habbit of hitting ESC
everytime I pause to think, bit like the typing version of saying um
whilst talking. The number of times I have hit ESC in notepad on Windoze
could not be counted.

> However vi is the only one true editor :)

Ahmen brother! And Pearl is the language of the Gods. Linux is the OS of
the GNU generation ...

RodosZZ

-- 
[EMAIL PROTECTED] | 2 + 2 = 5, for extremely large values of 2. [unknown]
Camion Technology |
+61 2 9873 5105   |



-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



Re: [SLUG] EXIT COMMAND

2000-12-06 Thread Pete

>On Thursday 07 December 2000 10:43, Matthew Dalton wrote:
>> Rodos wrote:
>> > Who uese :wq anyway, ZZ is one stroke less.
>> ZZ doesn't mean anything. :wq means :(command) w (write) q (quit)
>
>I've known about both, however I learned :wq first and am in the habit of
>using it now and just can't break it.
>
>ZZ is better not only because it is 2 less keystrokes, but it's easier to
not
>stuff up with a typo like :qw which I do fairly regularly when I'm maddly
>hacking away and it breaks your rhythm. I'm going to have to see if I can
>break my :wq habit.

No-one seems to have mentioned :x which only saves if you've made changes
iirc.

Pete



-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



Re: [SLUG] EXIT COMMAND

2000-12-06 Thread Rodos

On Thu, 7 Dec 2000, John Ryland wrote:

> ZZ is better not only because it is 2 less keystrokes, but it's easier to not
> stuff up with a typo like :qw which I do fairly regularly when I'm maddly
> hacking away and it breaks your rhythm. I'm going to have to see if I can
> break my :wq habit.

John why don't you give Pico a try, not such problems there.



RodosZZ

-- 
[EMAIL PROTECTED] | It is, of course, written in Perl. Translation to C is
Camion Technology | left as an exercise for the reader. :-)   [Larry Wall]
+61 2 9873 5105   |



-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



Re: [SLUG] EXIT COMMAND

2000-12-06 Thread John Ryland


I've occassionally used kwrite and noticed to exit you can just hit ESC, 
that's one keystroke. That has to be as easy as it gets. kwrite also has 
context sensitive highlighting too. It even has a visual mode! However vi is 
the only one true editor :)

Regards
John


On Thursday 07 December 2000 06:40, Rodos wrote:
> On Thu, 7 Dec 2000, Jeff Waugh took a dig and wrote:
> > Ever the pico user, Rodos! :P
> >
> > alias :wq=exit
>
> Ow, that hurts Jeff, pico! I could tolerate emacs or even gnotepad+ at a
> pinch, but pico!
>
> Opps, I am writing this in Pine and am therefore using Pico, agh I have
> been fooled. Quick ^_ ... :set tw-=74 ahh, thats better, now I am back in
> familuar teritory.
>
> Must admit that vim does a nice job of syntax highlighting the email text.
> The signature is a different colour as is the quoted text!
>
> Who uese :wq anyway, ZZ is one stroke less.
>
> ZZ


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



Re: [SLUG] EXIT COMMAND

2000-12-06 Thread John Ryland


On Thursday 07 December 2000 10:43, Matthew Dalton wrote:
> Rodos wrote:
> > Who uese :wq anyway, ZZ is one stroke less.
> ZZ doesn't mean anything. :wq means :(command) w (write) q (quit)

I've known about both, however I learned :wq first and am in the habit of 
using it now and just can't break it.

ZZ is better not only because it is 2 less keystrokes, but it's easier to not 
stuff up with a typo like :qw which I do fairly regularly when I'm maddly 
hacking away and it breaks your rhythm. I'm going to have to see if I can 
break my :wq habit.

Regards
John


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



Re: [SLUG] EXIT COMMAND

2000-12-06 Thread Jeff Waugh



> ZZ doesn't mean anything. :wq means :(command) w (write) q (quit)


"And on the seventh day, The Hacker eyed numerous empty Coke bottles strewn
about the room, the empty packets of biscuits, sour sugar-coated jellies and
Chinese takeaway. The Hacker gazed over hype-marketed energy drinks and
various inappropriate products containing accelerants, glossy magazines, the
stack of thumbed, sweaty O'Reilly books piled precariously on the edge of
the desk, and the reams of code noisily backing up to tape.

"The Hacker was pleased with what he had done, crawling into the sleeping
bag underneath his desk, and checking his stock ticker on the way."

ZZ

- Jeff


-- [EMAIL PROTECTED] --- http://linux.conf.au/ --

 "Everyone says they like Free Software - not everyone is ready to  
  make tough choices to make it happen." - Maciej Stachowiak, GNOME Hacker  


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



Re: [SLUG] EXIT COMMAND

2000-12-06 Thread Matthew Dalton

Rodos wrote:
> Who uese :wq anyway, ZZ is one stroke less.

If we're talking vi here, and not exiting a shell... I use :wq

Why?
Because it was more intuitive when I was learning vi (if vi can ever be
intuitive).

ZZ doesn't mean anything. :wq means :(command) w (write) q (quit)

And now it's habit. So :wq you too! :)


Matthew


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



Re: [SLUG] EXIT COMMAND

2000-12-06 Thread Jeff Waugh



> Who uese :wq anyway, ZZ is one stroke less.
> 
> ZZ


Two in fact, you have to hit enter... I didn't know this one - thank you!

(Pretty good for a pico user!)

;) - Jeff


-- [EMAIL PROTECTED] --- http://linux.conf.au/ --

Web development with PHP is like injecting pure rust with a 
high-pressure hose. For pain relief.


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



Re: [SLUG] EXIT COMMAND

2000-12-06 Thread Rodos

On Thu, 7 Dec 2000, Jeff Waugh took a dig and wrote:

> Ever the pico user, Rodos! :P
>
> alias :wq=exit

Ow, that hurts Jeff, pico! I could tolerate emacs or even gnotepad+ at a
pinch, but pico!

Opps, I am writing this in Pine and am therefore using Pico, agh I have
been fooled. Quick ^_ ... :set tw-=74 ahh, thats better, now I am back in familuar
teritory.

Must admit that vim does a nice job of syntax highlighting the email text.
The signature is a different colour as is the quoted text!

Who uese :wq anyway, ZZ is one stroke less.

ZZ

-- 
[EMAIL PROTECTED] | I find this a nice feature but it is not according to
Camion Technology | the documentation. Or is it a BUG? Let's call it an
+61 2 9873 5105   | accidental feature. :-)  [Larry Wall]



-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



RE: [SLUG] EXIT COMMAND

2000-12-06 Thread Alister Waller

It was actually for users to exit their telnet session. we use a software
package that users do data entry in, all in CAPS, so when they exit the
program 99.9 times out of 100 they have caps lock on and type exitits
just so when they type EXIT it will call exit and close the telnet session.

its OK

alias EXIT=exit works fine..

thanks

Alister

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> Peter Rundle
> Sent: Thursday, 7 December 2000 8:43 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [SLUG] EXIT COMMAND
>
>
> Alister Waller wrote:
> >
> > Hi,
> >
> > I want to create aun Uppercase EXIT that calls exit.
>
> Are you trying to do something like
>
> --
>
> #!/bin/sh
>
> EXIT ()
> {
># remove temp files etc
>
>...
>
># Tell user why we are bailing
>echo Error:$1
>exit
> }
>
> if [ some silly error condition ]
> then
>   EXIT "You've fsck'd it up"
> fi
>
> # do more stuff
>
> if [ another silly error condition ]
> then
>   EXIT "Now you've really fsck'd it up!"
> fi
>
> etc...
>
> ---
> ???
>
> rgds
>
> Pete
>
>
> --
> SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
> More Info: http://slug.org.au/lists/listinfo/slug
>



-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



Re: [SLUG] EXIT COMMAND

2000-12-06 Thread Matthew Dalton

Jeff Waugh wrote:
> 
> 
> 
> > alias EXIT=exit
> > alias byebye=exit
> 
> alias :wq=exit
> 


Aliases! Pfff...

^D, man... that's where it's at.


Matthew


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



Re: [SLUG] EXIT COMMAND

2000-12-06 Thread Jeff Waugh



> alias EXIT=exit
> alias byebye=exit


Ever the pico user, Rodos! :P

alias :wq=exit

;) - Jeff


-- [EMAIL PROTECTED] --- http://linux.conf.au/ --

Web development with PHP is like injecting pure rust with a 
high-pressure hose. For pain relief.


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



Re: [SLUG] EXIT COMMAND

2000-12-06 Thread Peter Rundle

Alister Waller wrote:
> 
> Hi,
> 
> I want to create aun Uppercase EXIT that calls exit.

Are you trying to do something like

--

#!/bin/sh

EXIT ()
{
   # remove temp files etc

   ...

   # Tell user why we are bailing
   echo Error:$1 
   exit
}

if [ some silly error condition ]
then
  EXIT "You've fsck'd it up"
fi

# do more stuff

if [ another silly error condition ]
then
  EXIT "Now you've really fsck'd it up!"
fi

etc...

---
???

rgds

Pete


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



Re: [SLUG] EXIT COMMAND

2000-12-06 Thread Rodos

On Thu, 7 Dec 2000, Alister Waller wrote:

> I want to create aun Uppercase EXIT that calls exit.
> I can't find the command exit on my machine so don't know how to do this.
> is there a way around this?

In a shell?

alias EXIT=exit
alias byebye=exit

Rodos

-- 
[EMAIL PROTECTED] | Don't worry about people stealing an idea. If it's
Camion Technology | original, you will have to ram it down their throats.
+61 2 9873 5105   |[Howard Aiken]



-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



[SLUG] EXIT COMMAND

2000-12-06 Thread Alister Waller

Hi,

I want to create aun Uppercase EXIT that calls exit.
I can't find the command exit on my machine so don't know how to do this.
is there a way around this?

TIA

Alister 


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug