[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
The !:0- history construct malfunction
From: |
Yar Tikhiy |
Subject: |
The !:0- history construct malfunction |
Date: |
Mon, 14 May 2001 12:54:36 +0400 (MSD) |
Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: freebsd4.3
Compiler: cc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386'
-DCONF_OSTYPE='freebsd4.3' -DCONF_MACHTYPE='i386--freebsd4.3' -DCONF_VENDOR=''
-DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -I/usr/local/include -O
-pipe
uname output: FreeBSD bsd.chem.msu.ru 4.3-STABLE FreeBSD 4.3-STABLE #0: Thu May
3 15:25:30 MSD 2001 yar@bsd.chem.msu.ru:/usr/obj/usr/src/sys/BSD i386
Machine Type: i386--freebsd4.3
Bash Version: 2.05
Patch Level: 0
Release Status: release
Description:
The !:0- history expansion construct loses all the words
but the zeroth one if followed by more command-line arguments.
Repeat-By:
$ echo foo bar baz
foo bar baz
$ !:0-
echo foo bar
foo bar
# Seems OK. Lets try to change "baz" to "xyzzy"...
$ echo foo bar baz
foo bar baz
$ !:0- xyzzy
echo xyzzy
xyzzy
# Oops! Where have "foo" and "bar" gone?
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- The !:0- history construct malfunction,
Yar Tikhiy <=