Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: .zsh_history



On Sat, Apr 15, 2023 at 5:31 PM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
> All I want is to be able to recover a command tail *exactly* as it was typed.
>
> my_function ()
> {
> grab_tail # writes tail to 'my_tail'.
> echo "my tail, exactly as typed, is: $my_tail"
> }
>
> $ my_function $path $(eval 'ls *') one two three ! < > ``.."" &>^!
>
> my tail, exactly as typed, is: $path $(eval 'ls *') one two three ! < >
> ``.."" &>^!

What would this do?

    % list=(my_function arg)
    % $list

What I typed is `$list`, but what is "tail"?

Roman.




Messages sorted by: Reverse Date, Date, Thread, Author