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
  •  


MegaRAID 9580-8i8e 16-port 12G SAS/SATA/NVMe 8GB PCIe RAID - 05-50076-00 picture

MegaRAID 9580-8i8e 16-port 12G SAS/SATA/NVMe 8GB PCIe RAID - 05-50076-00

$1619.19



G-Technology G-SPEED Studio XL 48TB Thunderbolt 2 Storage - Housing Only picture

G-Technology G-SPEED Studio XL 48TB Thunderbolt 2 Storage - Housing Only

$200.00



Broadcom MegaRAID 9480-8e Fujitsu PRAID EP540e SAS RAID Card (Replac 9380-8e) 8i picture

Broadcom MegaRAID 9480-8e Fujitsu PRAID EP540e SAS RAID Card (Replac 9380-8e) 8i

$228.00



Intel VROC Premium RAID Controller Card PCIe Add-On Module VROCPREMMOD picture

Intel VROC Premium RAID Controller Card PCIe Add-On Module VROCPREMMOD

$265.00



Broadcom LSI 9305-16i 12Gbps SAS-3 PCIe x8 HBA 16-Ports Raid Controller picture

Broadcom LSI 9305-16i 12Gbps SAS-3 PCIe x8 HBA 16-Ports Raid Controller

$64.99



Dell PowerEdge HBA330 LP PCI-E 12GBs RAID SAS Controller Adapter J7TNV picture

Dell PowerEdge HBA330 LP PCI-E 12GBs RAID SAS Controller Adapter J7TNV

$18.95



OWC Mercury Elite Pro 2 Bay RAID Enclosure with USB 3.2  for Dual 3.5 inch HDDs picture

OWC Mercury Elite Pro 2 Bay RAID Enclosure with USB 3.2 for Dual 3.5 inch HDDs

$87.99



NVME M.2 Adapter Card PCIE X16 Splitter Expansion Controller 4-Disk Soft RAID picture

NVME M.2 Adapter Card PCIE X16 Splitter Expansion Controller 4-Disk Soft RAID

$24.43



Broadcom 9600-24i RAID Controller PCIe Gen 4.1 Tri-Mode NEW 05-50111-01004 picture

Broadcom 9600-24i RAID Controller PCIe Gen 4.1 Tri-Mode NEW 05-50111-01004

$649.99



Areca ARC-1882IX-24 (16i4e)24-Port RAID Controller Card w/BBU /HDD Monitor Board picture

Areca ARC-1882IX-24 (16i4e)24-Port RAID Controller Card w/BBU /HDD Monitor Board

$300.00