<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>32639</bug_id>
          
          <creation_ts>2016-10-20 20:53:34 +0300</creation_ts>
          <short_desc>broken last-argument history</short_desc>
          <delta_ts>2023-04-27 12:31:23 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>zsh</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>ASSIGNED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Shigorin">mike</reporter>
          <assigned_to name="Fr. Br. George">george</assigned_to>
          <cc>arseny</cc>
    
    <cc>george</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>159333</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2016-10-20 20:53:34 +0300</bug_when>
    <thetext>$ grep &apos;()
[pressed Enter too early, typing mistake]
quote&gt; 
[pressed Ctrl-C]
$ grep &apos;()&apos; 
[pressed Alt-. thrice to recall the last argument of a preceding command]
$ grep &apos;()&apos; &apos;()&apos;()&apos;()

2 george: I understand it&apos;s not the package bug but upstream one,
          chose to post at least here before leaving the office...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>160753</commentid>
    <comment_count>1</comment_count>
    <who name="Fr. Br. George">george</who>
    <bug_when>2016-12-14 14:18:56 +0300</bug_when>
    <thetext>How very funny :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>161791</commentid>
    <comment_count>2</comment_count>
    <who name="Fr. Br. George">george</who>
    <bug_when>2017-02-09 09:48:03 +0300</bug_when>
    <thetext>Now, after a time passed, I can not guess, why it is a bug? Seems to me &quot;&apos;()&quot; is actual last argument. So what do we expect intead7</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>161802</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2017-02-09 15:40:59 +0300</bug_when>
    <thetext>(В ответ на комментарий №2)
&gt; So what do we expect intead7
&quot;Scrolling&quot; three last-arg history positions up, obviously.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>225061</commentid>
    <comment_count>4</comment_count>
    <who name="Arseny Maslennikov">arseny</who>
    <bug_when>2023-04-27 12:31:23 +0300</bug_when>
    <thetext>(In reply to Michael Shigorin from comment #3)
&gt; (В ответ на комментарий №2)
&gt; &gt; So what do we expect intead7
&gt; &quot;Scrolling&quot; three last-arg history positions up, obviously.

Instead of improving/fixing insert-last-word (implemented in C source), upstream has been recommending the following commands:
    % autoload -Uz smart-insert-last-word
    % zle -N insert-last-word smart-insert-last-word
to be included in .zshrc.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>