Results 1 to 3 of 3

Thread: Why the "!" history feature doesn't work in knoppi

  1. #1
    Senior Member registered user
    Join Date
    Apr 2005
    Location
    italy
    Posts
    245

    Why the "!" history feature doesn't work in knoppi

    According to man_history '! Start a history substitution...', but to me it return an error message:
    bash: syntax error near unexpected token `newline'

    The same behavior also in 'debian sarge' I've noticed.

  2. #2
    Senior Member registered user
    Join Date
    Sep 2005
    Posts
    205

    Re: Why the "!" history feature doesn't work in kn

    Quote Originally Posted by maxIT
    According to man_history '! Start a history substitution...', but to me it return an error message:
    bash: syntax error near unexpected token `newline'
    The same behavior also in 'debian sarge' I've noticed.
    Did you try to use plain "!"?
    That is incorrect usage because man history clearly says that "!" only starts a history substitution when not followed by a blank, newline, = or (
    ! Start a history substitution, except when followed by a blank, newline, = or (.
    !n Refer to command line n.
    !-n Refer to the current command line minus n.
    !! Refer to the previous command. This is a synonym for `!-1'.
    At least on Knoppix 4.0.2 CD history expansion works as expected:
    Code:
    knoppix@0[knoppix]$ echo One
    One
    knoppix@0[knoppix]$ echo Two
    Two
    knoppix@0[knoppix]$ !
    bash: syntax error near unexpected token `newline'
    knoppix@0[knoppix]$ !-2
    echo Two
    Two
    knoppix@0[knoppix]$ !-4
    echo One
    One
    knoppix@0[knoppix]$ !!
    echo One
    One

  3. #3
    Senior Member registered user
    Join Date
    Apr 2005
    Location
    italy
    Posts
    245
    Oh me stupid! Thanks!
    Maybe I was confused after reading somewere on the net something like: "type ! to repeat the last bash command"

Similar Threads

  1. Can't get "persistent home" to work (solved)
    By carolus in forum General Support
    Replies: 0
    Last Post: 04-29-2008, 10:28 PM
  2. A "work around for broken BIOS"
    By benny_mott in forum Hardware & Booting
    Replies: 0
    Last Post: 11-14-2006, 10:11 PM
  3. Does cheat code "testcd" work with DVD?
    By ockham23 in forum Knoppix DVD
    Replies: 0
    Last Post: 08-28-2005, 11:02 AM
  4. will the "Remaster From HDInstall How To" work wit
    By metavoid in forum Customising & Remastering
    Replies: 0
    Last Post: 08-31-2004, 11:13 PM
  5. Locate Knoppix "group" in "K" menu
    By Juny in forum General Support
    Replies: 4
    Last Post: 03-14-2003, 09:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Cisco Nexus N9K-C92160YC-X 48P 25GbE SFP28 6P QSFP+/QSFP28 PE Switch picture

Cisco Nexus N9K-C92160YC-X 48P 25GbE SFP28 6P QSFP+/QSFP28 PE Switch

$439.00



Cisco WS-C3650-12X48UR-L 48-Port Stackable Layer 3 8x10G SFP+ Port Switch picture

Cisco WS-C3650-12X48UR-L 48-Port Stackable Layer 3 8x10G SFP+ Port Switch

$129.99



Cisco Catalyst C9130AXI-B WiFi 6 802.11ax Wireless Access Point Brand New picture

Cisco Catalyst C9130AXI-B WiFi 6 802.11ax Wireless Access Point Brand New

$101.99



Cisco Acacia DP04QSDD-E25-840 400G QSFP-DD Coherent DCO Transceiver Module picture

Cisco Acacia DP04QSDD-E25-840 400G QSFP-DD Coherent DCO Transceiver Module

$699.99



Cisco | N3K-C3232C | 32-Port 100G QSFP Network Switch  W/ 2x PSU, 2x Power Cords picture

Cisco | N3K-C3232C | 32-Port 100G QSFP Network Switch W/ 2x PSU, 2x Power Cords

$205.00



CISCO Services Router C891F-K9, Grade B,  SKU 16188 picture

CISCO Services Router C891F-K9, Grade B, SKU 16188

$24.94



Cisco WS-C3850-48P-S 48-Port PoE+ Gigabit Switch w/ 10G Uplink Module Options picture

Cisco WS-C3850-48P-S 48-Port PoE+ Gigabit Switch w/ 10G Uplink Module Options

$259.99



Cisco Catalyst WS-C2960X-48FPD-L 48-Port Gigabit Managed PoE+ Ethernet Switch picture

Cisco Catalyst WS-C2960X-48FPD-L 48-Port Gigabit Managed PoE+ Ethernet Switch

$69.99



Cisco C3850-NM-2-10G picture

Cisco C3850-NM-2-10G

$75.00



Cisco QSFP-40G-SR-BD  Module  10-2945-02  NEW CLAMSHELL picture

Cisco QSFP-40G-SR-BD Module 10-2945-02 NEW CLAMSHELL

$45.50