Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Failing to write to history file if containing directory doesn't exist
- X-seq: zsh-users 11969
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Failing to write to history file if containing directory doesn't exist
- Date: Mon, 08 Oct 2007 18:44:45 -0700
- In-reply-to: <dbfc82860710081532m5672197crf568b7d120ab192f@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <dbfc82860710080309m41cfa984q5aa0474c6b4bdf62@xxxxxxxxxxxxxx> <200710081015.l98AFlIU018448@xxxxxxxxxxxxxx> <dbfc82860710080508o3ef1de0br957caf39bb2aa19f@xxxxxxxxxxxxxx> <200710081338.l98Dc2br012284@xxxxxxxxxxxxxx> <dbfc82860710080705w6e90db9i2a9714caf27460c4@xxxxxxxxxxxxxx> <20071008141403.GA25326@xxxxxxxxxxx> <20071008151949.GA18576@mastermind> <dbfc82860710080830r289c962eyde18f1564e7f0de0@xxxxxxxxxxxxxx> <20071008154632.GB18576@mastermind> <dbfc82860710081532m5672197crf568b7d120ab192f@xxxxxxxxxxxxxx>
On Oct 9, 12:32am, Nikolai Weibull wrote:
}
} > every time the history is updated. That would make it impossible for
} > a user with HISTFILE=~/.zsh/history to do something as simple as:
} >
} > % mv .zsh .zsh-4.3.4
} > % ln -s .zsh-4.3.4 .zsh
} >
} > without first unsetting and later setting HISTFILE, since the
} > directory would be recreated between the two commands.
}
} Only under the condition that HISTFILE is written to between the two
} commands.
Which will be always, if the SHARE_HISTORY and/or INC_APPEND_HISTORY
options are set.
} I still want to play a "don't lose data without trying to save it"
} card, but it seems I'm the only one playing cards of that suite.
History is only maintained for interactive shells, so you might get
more traction with an option to prompt the user to create the directory
and/or fix $HISTFILE when the file does not exist or is not writable.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author