Wayne Davison
b207aeeded
Don't mark a HIST_TMPSTORE entry with HIST_OLD so that the HFILE_FAST
...
algorithm in savehistfile() will recheck this hist num later.
2001-06-08 00:15:18 +00:00
Wayne Davison
f99520aeb0
Don't merge a HIST_TMPSTORE entry with a previous "duplicate" line.
...
Also, don't call addhistnode() on a HIST_TMPSTORE entry.
2001-05-19 09:22:10 +00:00
Wayne Davison
9f9ced8c62
+ Changed histreduceblanks() to preserve spaces at the start of the
...
line when HISTIGNORESPACE is set.
+ Flag a history entry with HIST_TMPSTORE when should_ignore_line()
returns true (instead of dropping it from the history immediately).
+ Get rid of old HIST_TMPSTORE entries when a new command is entered.
+ The hist-file-reading code now handles destroying a foreign
duplicate (when marked as duplicate by addhistnode()).
2001-05-15 16:32:25 +00:00
Wayne Davison
6066bd7eeb
Fixed an obscure local-history bug that could make the "history"
...
command output something that was slightly wrong. (14304)
2001-05-10 23:06:54 +00:00
Bart Schaefer
220ad9aa23
Parameter repairs, mostly for subscripting.
2001-04-20 06:13:35 +00:00
Wayne Davison
6d4a1bbc5c
Slightly optimized should_ignore_line() by using getjobtext() rather
...
than getpermtext().
2001-04-10 18:03:58 +00:00
Sven Wischnowsky
85de1eae0b
properly restore noaliases in bufferwords() (13530)
2001-02-26 09:43:08 +00:00
Peter Stephenson
cd02c345af
13280: NewImproved handling of colon modifiers w.r.t. paths
2001-02-19 10:26:52 +00:00
Sven Wischnowsky
757168e2c8
remove 13108 (trap queues); replace with signal queueing to ensure that user signal handlers are only executed when it is safe to run them (13365)
2001-01-16 13:44:18 +00:00
Bart Schaefer
9bf7fb75c5
Fix "vared -h" in shell scripts.
2000-10-21 03:15:36 +00:00
Wayne Davison
4be4c7575c
Don't call histreduceblanks() if the line didn't parse right.
2000-10-19 07:12:26 +00:00
Sven Wischnowsky
9bc05a5aa5
isalpha() -> ialpha(); avoid a compiler warning (12439)
2000-07-31 08:12:16 +00:00
Wayne Davison
c6a3c250c1
Renamed shouldIgnoreLine() to should_ignore_line().
2000-07-20 17:00:19 +00:00
Wayne Davison
01ea5e83c5
Support "builtin" in the HIST_NO_STORE check.
2000-07-20 07:09:34 +00:00
Wayne Davison
1ad69e3d44
Removed remhist() and HA_JUNKED, added an Eprog arg to hend(), and
...
added the shouldIgnoreLine() function that hend() now calls to figure
out if it needs to save the line or not.
2000-07-19 21:12:06 +00:00
Wayne Davison
b4c5de44f9
+ Got rid of the spaceflag variable.
...
+ Make sure that the curline.histnum variable is accurate at the end
of our history processing, even if we read in some foreign history
and/or if we replaced the prior line because it was a duplicate of
the current one. This enables the history (fc -l) command to work
properly, even if the current command was HIST_NO_SPACE-ed away.
+ Don't allow remhist() to remove the last line in the history if we
didn't store the current command.
2000-07-18 07:55:13 +00:00
Wayne Davison
656bce6bf5
Fix the gethistent() function and enhanced the reliability of the
...
SHARE_HISTORY option.
2000-07-17 02:07:23 +00:00
Wayne Davison
2b602a93e6
+ Needed to call unmeta() in a few spots that used the HISTFILE name.
...
+ The non-HAVE_LINK code in lockhistfile() was broken in a number of ways.
+ Added an extra unlink() call to the HAVE_LINK code in lockhistfile()
since (Linix at least says that) O_EXCL over NFS is broken.
2000-07-16 20:12:19 +00:00
Sven Wischnowsky
0982f4ee64
condition parsing with (z) flag
2000-07-13 12:28:12 +00:00
Sven Wischnowsky
c3082d546e
slightly improved (z) flag for parsing conditions; recognising glob flags in conditions still doesn't work (12237)
2000-07-13 08:42:10 +00:00
Sven Wischnowsky
d861bb9805
fix for (z) flag, don't take # as comment (12228)
2000-07-12 10:31:29 +00:00
Oliver Kiddle
64d9b83105
AIX depenency fix (11661)
2000-05-30 14:06:30 +00:00
Bart Schaefer
8564aa5c0d
Wayne: Fix two history bugs that were causing the
...
failure of `print -s'.
2000-05-30 03:43:27 +00:00
Sven Wischnowsky
7f9f81f3e2
save and restore more variables in bufferwords(); move gotword() into core (11523)
2000-05-23 08:20:56 +00:00
Sven Wischnowsky
c844ad8712
Wayne: fix for print -s when called from widget; added lines are not immediately available, though (11171)
2000-05-05 07:42:36 +00:00
Sven Wischnowsky
17e79c0157
fix for the (z) flag: report partial word (like `"foo', without a closing quote); mention in manual that (z) is handled lately (11117)
2000-05-03 13:05:39 +00:00
Sven Wischnowsky
70e5b622ff
new (z) parameter flag to do shell-word splitting on the value (11113)
2000-05-03 12:21:55 +00:00
Sven Wischnowsky
b1d4a8194a
new widget copy-prev-shell-word, like copy-prev-word but uses shell parsing to find word (10685)
2000-04-12 08:24:15 +00:00
Tanaka Akira
e74702b467
Initial revision
1999-04-15 18:05:38 +00:00