Tux

...making Linux just a little more fun!

Bash Ref. Manual 8.4.3 Commands for Changing Text

tuxsun1 [tuxsun1 at gmail.com]


Tue, 04 Sep 2007 12:01:58 -0500

I do not understand how to implement negative arguments as documented in the following excerpts from the Bash Reference Manual, Chapter 8. Command Line Editing, Section 8.4 Bindable Readline Commands, sub-section 8.4.3 Commands for Changing Text:

|upcase-word (M-u)|
    Uppercase the current (or following) word. With a negative argument,
    uppercase the previous word, but do not move the cursor.
 
|downcase-word (M-l)|
    Lowercase the current (or following) word. With a negative argument,
    lowercase the previous word, but do not move the cursor.
 
|capitalize-word (M-c)|
    Capitalize the current (or following) word. With a negative
    argument, capitalize the previous word, but do not move the cursor.
Pressing ALT-u, ALT-l, or ALT-c to uppercase, lowercase, or capitalize the current (or following) word is very straightforward.

But for the life of me I'm baffled as to what they mean, "With a negative argument," to uppercase, lowercase, or capitalize the previous word.

What negative argument? From where? What keystroke(s)? I'm lost as to how to uppercase, lowercase, or capitalize the previous word.

What am I missing in their explanation?

Thank you in advance!

John


Top    Back


Neil Youngman [ny at youngman.org.uk]


Tue, 4 Sep 2007 18:42:02 +0100

On or around Tuesday 04 September 2007 18:01, tuxsun1 reorganised a bunch of electrons to form the message:

> I do not understand how to implement negative arguments as documented in
> the following excerpts from the Bash Reference Manual, Chapter 8.
> Command Line Editing, Section 8.4 Bindable Readline Commands,
> sub-section 8.4.3 Commands for Changing Text:

<SNIP>

> What negative argument? From where? What keystroke(s)? I'm lost as to
> how to uppercase, lowercase, or capitalize the previous word.

http://www.google.com/search?q=bash+%22negative+argument%22&ie=utf-8&oe=utf-8&aq=t&rls=org.debian:en-US:unofficial&client=iceweasel-a

[[[ Alternatively: http://preview.tinyurl.com/2283zt - Kat ]]]

points to

http://www.delorie.com/gnu/docs/bash/bashref_100.html

HTH

Neil


Top    Back