Re: Issues with history substitution and its documentation

2019-11-18 Thread Jim Monte
b c [root@localhost ~]# echo a b c a b c [root@localhost ~]# echo !:s echo echo a b c echo a b c Jim On Mon, Nov 18, 2019 at 11:14 AM Chet Ramey wrote: > On 11/3/19 9:18 AM, Jim Monte wrote: > > Two more documentation issues I have found are below. > > > > It appears that

Re: Issues with history substitution and its documentation

2019-11-18 Thread Jim Monte
root@localhost ~]# echo "!%" echo "" Jim On Mon, Nov 18, 2019 at 11:20 AM Chet Ramey wrote: > On 11/5/19 11:44 AM, Jim Monte wrote: > > The availability of the % string only after a command unrelated to it > (not > > using !??) is executed as shown below i

Re: Issues with history substitution and its documentation

2019-11-06 Thread Jim Monte
# echo a b c a b c [root@localhost ~]# echo "!:s\b&&\" echo "echo a c\\&&\" > " echo a c\&&" [root@localhost ~]# echo a b c a b c [root@localhost ~]# echo "!:s\b\z\&&y\" echo "echo a z c&&y\" > "

Re: Issues with history substitution and its documentation

2019-11-06 Thread Jim Monte
host ~]# !:& echo z1 z1 [root@localhost ~]# echo a2 a2 [root@localhost ~]# !:s/b/y/ bash: :s/b/y/: substitution failed [root@localhost ~]# echo b2 b2 [root@localhost ~]# !:& echo y2 y2 [root@localhost ~]# Jim On Tue, Nov 5, 2019 at 11:44 AM Jim Monte wrote: > The availability of the % stri

Re: Issues with history substitution and its documentation

2019-11-05 Thread Jim Monte
@localhost ~]# bash [root@localhost ~]# echo "!%" bash: !: event not found [root@localhost ~]# echo a >/dev/nul [root@localhost ~]# echo "!%" echo "" [root@localhost ~]# Jim On Mon, Nov 4, 2019 at 9:42 AM Jim Monte wrote: > Related to the issues with the ? event

Re: Issues with history substitution and its documentation

2019-11-04 Thread Jim Monte
cho echo a b c d >/dev/nul [root@localhost ~]# echo "!%" echo "b" b [root@localhost ~]# echo a1 >/dev/nul [root@localhost ~]# echo !? a? echo echo a1 >/dev/nul [root@localhost ~]# echo "!%" echo "" Jim On Sun, Nov 3, 2019 at 9:18 AM Jim Monte wrot

Re: Issues with history substitution and its documentation

2019-11-03 Thread Jim Monte
t@localhost ~]# bash [root@localhost ~]# echo a b c a b c [root@localhost ~]# echo !:s//1/ bash: :s//1/: no previous substitution Again, this behavior is not documented. On Thu, Oct 10, 2019 at 10:35 PM Jim Monte wrote: > Hi, > > This bug report has been my first one for Bash. I have

Re: Issues with history substitution and its documentation

2019-10-10 Thread Jim Monte
echo !!:0- echo echo a b c echo a b c Jim Monte On Thu, Oct 3, 2019 at 6:19 PM Jim Monte wrote: > Hi All, > > Below are some issues I found with history substitution. I am duplicating > its behavior in a somewhat different use, and found issues with the > documentation and bugs as

Issues with history substitution and its documentation

2019-10-03 Thread Jim Monte
Hi All, Below are some issues I found with history substitution. I am duplicating its behavior in a somewhat different use, and found issues with the documentation and bugs as described. Jim Monte From: jim To: bug-bash@gnu.org Subject: Issues with history substitution and its documentation