Re: History modifier :p ignored prior to another history reference

2016-05-08 Thread Chet Ramey
On 5/5/16 2:08 PM, Piotr Grzybowski wrote: > Hey, > > confirmed, this is what happens by construction. > this one is going to be tricky, expansion happens on the shell line, way > before it comes to execution. I do not see reparsing again at execute_command > even if we had means, which we don

Re: History modifier :p ignored prior to another history reference

2016-05-08 Thread Chet Ramey
On 5/3/16 12:15 PM, Dean Stanton wrote: > History modifier :p is not honored when it appears prior to another history > reference on the same command line. csh and tcsh appear to make the :p modifier apply to every history expansion on the line if it appears anywhere in the line. I'll take a loo

Re: History modifier :p ignored prior to another history reference

2016-05-05 Thread Piotr Grzybowski
On 5 May 2016, at 20:08, Piotr Grzybowski wrote: > [..] > Currently the design indicates: :p applies to the whole line. As Dean just has pointed out to me, this sentence is obviously wrong. it should be: Currently the design indicates: the last :p applies to the whole line, the information a

Re: History modifier :p ignored prior to another history reference

2016-05-05 Thread Piotr Grzybowski
Hey, confirmed, this is what happens by construction. this one is going to be tricky, expansion happens on the shell line, way before it comes to execution. I do not see reparsing again at execute_command even if we had means, which we dont, to store the information from history expansion to

History modifier :p ignored prior to another history reference

2016-05-03 Thread Dean Stanton
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-redhat-linux-gnu' -DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/share/loc