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

Re: ZLE widget to run gdb on command line



On Oct 6,  7:04pm, Phil Pennock wrote:
} Subject: Re: ZLE widget to run gdb on command line
}
} On 2006-10-06 at 10:52 -0400, Chris Johnson wrote:
} >    print -s ${(z)BUFFER}
} >    BUFFER="gdb !!0 -x =(echo run !!1*)"
} 
} If one of the args starts with - then won't that turn into an option to
} echo?

If $BUFFER starts with "-" it'll turn into an option to print -s, but
the placement of "run" after "echo" means nothing beyond that will be
treated as options.  (For those who have been following the strange
discussion on the austin-group list, zsh is not a GNU program and it
does not in general interpret as options strings beginning with a "-"
that appear after non-option operands.)

Interpretation of various backslashed sequences in the arguments is
another matter.  From that standpoint, print -r would be better.



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