Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ZLE widget to run gdb on command line
- X-seq: zsh-users 10804
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: ZLE widget to run gdb on command line
- Date: Fri, 06 Oct 2006 19:10:30 -0700
- In-reply-to: <20061006170408.GA3693@xxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20061006145222.GA32307@xxxxxxxxxxxxxxxx> <20061006170408.GA3693@xxxxxxxxxxxxxxxxxxxxx>
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