Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: sticky-notes script [was: Zsh - push current command on history without executing it]
- X-seq: zsh-users 12431
- From: Jean-Rene David <jrdavid@xxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: sticky-notes script [was: Zsh - push current command on history without executing it]
- Date: Tue, 15 Jan 2008 17:57:49 -0500
- In-reply-to: <080113000048.ZM15017@xxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20080104105900.37a87f7e@news01> <237967ef0801040304h494987bv939bf6ff9541123f@xxxxxxxxxxxxxx> <477E177A.3060303@xxxxxxxxxxxxx> <Xns9A20C0F173D23zzappergmailcom@xxxxxxxxxxxx> <080113000048.ZM15017@xxxxxxxxxxxxxxxxxxxxxx>
* Bart Schaefer [1/13/2008 3:00 AM]:
# A little zsh sticky-note ("post-it") application.
[snip beginning of script]
# Invoked as a command, behave like zed, but write a history file
setopt extendedhistory nobanghist
fc -ap $STICKYFILE $STICKYSIZE $STICKYSIZE
This is very nice, but the line above gives me:
sticky-notes:fc:49: not interactive shell
I tried on both:
zsh 4.3.4 (i686-pc-cygwin)
zsh 4.2.0 (i386-redhat-linux-gnu)
zsh won't let me "setopt interactive" in
the script, so not sure what to try next.
--
JR
Messages sorted by:
Reverse Date,
Date,
Thread,
Author