CVS log for src/lib/libedit/filecomplete.c
Up to [cvs.NetBSD.org] / src / lib / libedit
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.73: download - view: text, markup, annotated - select for diffs
Tue Apr 25 17:51:32 2023 UTC (19 months, 2 weeks ago) by christos
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
HEAD
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +3 -3
lines
pass lint.
Revision 1.72: download - view: text, markup, annotated - select for diffs
Fri Feb 3 22:01:42 2023 UTC (22 months, 1 week ago) by christos
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +12 -2
lines
Add a entry point for the complete function for FreeBSD compatibility with sh.
Revision 1.71: download - view: text, markup, annotated - select for diffs
Sun Oct 30 19:11:31 2022 UTC (2 years, 1 month ago) by christos
Branches: MAIN
CVS tags: netbsd-10-base,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +4 -2
lines
improvements in malloc/free handling.
Revision 1.70: download - view: text, markup, annotated - select for diffs
Sat Mar 12 15:29:17 2022 UTC (2 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +9 -9
lines
Fix filename autocompletion for strings like a\)b
An escaped character should unconditionally be skipped together with the
character that does the escaping. For example, in "a\)b" only the ")b"
part was skipped but then the loop stopped at the "\" since it's one of
the characters listed in word_break. (Piotr P. Stefaniak)
Revision 1.69: download - view: text, markup, annotated - select for diffs
Sun Sep 26 13:45:37 2021 UTC (3 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +16 -13
lines
- Completion should not add a quote at the end of the line to match an
already quoted quote. (Piotr Stefaniak)
- fix lint unconst warnings for strchr
Revision 1.68: download - view: text, markup, annotated - select for diffs
Wed May 5 14:49:59 2021 UTC (3 years, 7 months ago) by christos
Branches: MAIN
CVS tags: cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +4 -3
lines
PR/56147: Miroslav Lichvar: Avoid memory leak if strdup fails.
Revision 1.67: download - view: text, markup, annotated - select for diffs
Sun Mar 28 13:39:39 2021 UTC (3 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +6 -4
lines
Only unescape when we are quoting and don't add a space if we are quoting
(we already did) (Piotr Stefaniak)
Revision 1.66: download - view: text, markup, annotated - select for diffs
Sun Mar 28 13:33:54 2021 UTC (3 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +3 -3
lines
Pass the unescaped filename the the append function so it has to do less work
(for example it can call stat(2) directly (Piotr Stefaniak)
Revision 1.65: download - view: text, markup, annotated - select for diffs
Sat Mar 27 18:55:02 2021 UTC (3 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +27 -12
lines
Add fn_complete2() that controls the quoting of the returned match.
Before it was based on the heuristic that we were not supplied an
attempted_completion_function, which worked well because programs
that supplied that function were not shells and did not want/understand
shell quoting. Recently though Piotr Stefaniak wanted to enhance command
completion for the Bourne Shell and this could benefit quoting the returned
command. This function adds an extra flags argument that controls that quoting.
Revision 1.51.2.2: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:03:12 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.51.2.1: preferred, colored; branchpoint 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51.2.1: +148 -119
lines
Mostly merge changes from HEAD upto 20200411
Revision 1.64: download - view: text, markup, annotated - select for diffs
Sun Jan 5 07:12:05 2020 UTC (4 years, 11 months ago) by abhinav
Branches: MAIN
CVS tags: phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
is-mlppp-base,
is-mlppp
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +17 -8
lines
PR lib/54510 - when user supplied completion function is there,
don't unescape the string to be completed.
Revision 1.63: download - view: text, markup, annotated - select for diffs
Sun Jan 5 00:03:27 2020 UTC (4 years, 11 months ago) by tih
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +4 -8
lines
Summary: Remove over-simplified extraneous test
The file name matching code in libedit tries to adjust to the presence
of explicit " or ' characters in the input line, but tries too hard.
Remove a conditional that goes overboard, and causes the completion
code to fail if a quoted string is seen before the filename to be
expanded, as in
grep 'foo' bar<TAB>
Before this change, the above would not expand any possible
completions, even if they existed, because it would choose to look for
files whose names started with " bar".
Revision 1.62: download - view: text, markup, annotated - select for diffs
Tue Dec 10 19:42:09 2019 UTC (5 years ago) by christos
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +93 -90
lines
When 'attempted_completion_function' non-NULL, with a 'single_match'
match, the expected space is not being added. Problem observed with
"chronyc" and "sqlite3" tab completion. That functionality got
moved to escape_filename() for the !attempted_completion_function
case, but the non-NULL 'attempted_completion_function' case must
also be handled. (Lonnie Abelbeck)
Revision 1.61: download - view: text, markup, annotated - select for diffs
Wed Oct 9 14:31:07 2019 UTC (5 years, 2 months ago) by christos
Branches: MAIN
CVS tags: phil-wifi-20191119
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +5 -5
lines
add +1 to strlcpy's (Patrick Welche)
Revision 1.60: download - view: text, markup, annotated - select for diffs
Tue Oct 8 19:21:40 2019 UTC (5 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +2 -3
lines
remore error(1) comment
Revision 1.59: download - view: text, markup, annotated - select for diffs
Tue Oct 8 19:17:57 2019 UTC (5 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +6 -8
lines
Change strncpy to either memcpy (when we know the len), or strlcpy (when
we used to NUL terminate explicitly.
Revision 1.58: download - view: text, markup, annotated - select for diffs
Sun Sep 8 05:50:58 2019 UTC (5 years, 3 months ago) by abhinav
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +46 -22
lines
PR lib/54510: Fix file completion inside quotes which broke in rev 1.53
While there also fix handling character appending in the file completions when
inside quotes. For example when inside a quote, if the completion is a directory then
append a '/' but don't close the quote. On the other hand when inside a quote if the
completion is a file name and it is the only match then we can close the quote.
Revision 1.57: download - view: text, markup, annotated - select for diffs
Sun Jul 28 09:27:29 2019 UTC (5 years, 4 months ago) by christos
Branches: MAIN
CVS tags: netbsd-9-base,
netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +4 -4
lines
PR/54415: Ricky Zhou: libedit stats completions for non-file completions
Use the proper completion function and account for the character appended
by the function when computing the number of columns.
Revision 1.56: download - view: text, markup, annotated - select for diffs
Tue Jul 23 10:18:52 2019 UTC (5 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +7 -7
lines
PR/54399: Sören Tempel: Uninitialized memory access in libedit history.
Initialize the buffer using calloc. While here change all malloc(a * sizeof(b))
to calloc(a, sizeof(b)). XXX: should fix realloc similarly.
Revision 1.51.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:05:23 2019 UTC (5 years, 6 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +75 -31
lines
Sync with HEAD
Revision 1.55: download - view: text, markup, annotated - select for diffs
Sat Apr 20 08:44:10 2019 UTC (5 years, 7 months ago) by abhinav
Branches: MAIN
CVS tags: phil-wifi-20190609
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +5 -4
lines
PR lib/54131 - declare the loop variable outside the for loop
Revision 1.54: download - view: text, markup, annotated - select for diffs
Fri Apr 12 15:12:29 2019 UTC (5 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +24 -6
lines
PR/54117: Paavo Helde: Fix memory overrun: Account for the closing quote
in memory allocation if quoted.
Revision 1.53: download - view: text, markup, annotated - select for diffs
Sun Mar 31 03:04:57 2019 UTC (5 years, 8 months ago) by abhinav
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +50 -29
lines
Perform quoting of filename completions when there are multiple matches as well
Quoting of special characters in filename completion was implemented for single match
case, this enables it for multiple matches as well. For example:
$ touch 'foo bar'
$ touch 'foo baz'
$ ls fo<TAB>
autocompletes to =>
$ ls foo\ ba
hitting <TAB> again shows:
foo bar foo baz
This required unescaping escape sequences generated during last completion
in order to find the word to complete.
While there, also update the test to include cases for multiple matches.
Reviewed by christos
Revision 1.52: download - view: text, markup, annotated - select for diffs
Sun Mar 24 16:42:49 2019 UTC (5 years, 8 months ago) by abhinav
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +11 -7
lines
Only quote the completion matches if we are doing filename completion
If the user supplies a value for the attempted_completion_function parameter
then we cannot be sure if the completion is for filename or something else, in such
a case don't attempt to quote the completion matches.
Reviewed by christos
This should address PR lib/54067
Revision 1.48.2.1: download - view: text, markup, annotated - select for diffs
Mon May 21 04:35:55 2018 UTC (6 years, 6 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.48: preferred, colored; next MAIN 1.49: preferred, colored
Changes since revision 1.48: +50 -14
lines
Sync with HEAD
Revision 1.51: download - view: text, markup, annotated - select for diffs
Fri May 4 20:38:26 2018 UTC (6 years, 7 months ago) by christos
Branches: MAIN
CVS tags: phil-wifi-base,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
pgoyette-compat-0625,
pgoyette-compat-0521
Branch point for: phil-wifi
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +5 -3
lines
fix uninitialized
Revision 1.50: download - view: text, markup, annotated - select for diffs
Fri May 4 16:39:14 2018 UTC (6 years, 7 months ago) by abhinav
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +46 -14
lines
Handle filename autocompletion when the cursor is at a backslash or quote character
For example, handle following case:
$ touch 'foo bar'
$ ls foo\<TAB> --> $ ls foo\ bar
Also add test cases for this.
Thanks to Christos for review
Revision 1.49: download - view: text, markup, annotated - select for diffs
Wed May 2 08:45:03 2018 UTC (6 years, 7 months ago) by abhinav
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +4 -2
lines
Add '*' and '[' to the list of characters which need escaping during autocompletion
Revision 1.48: download - view: text, markup, annotated - select for diffs
Fri Oct 27 18:16:09 2017 UTC (7 years, 1 month ago) by abhinav
Branches: MAIN
CVS tags: pgoyette-compat-base,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315
Branch point for: pgoyette-compat
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +8 -2
lines
Add NULL check after doing memory allocation at a couple of places
ok christos@
Revision 1.47: download - view: text, markup, annotated - select for diffs
Sun Oct 15 18:59:00 2017 UTC (7 years, 1 month ago) by abhinav
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +155 -19
lines
Add support for escaping special characters when doing filename completion.
For instance if the file name is "foo bar":
$ ls foo<TAB>
should get autocompleted to:
$ ls foo\ bar
Works for similar other characters too, which need escaping.
Also, add an accompanying test program to ensure the escaping is correct
in various scenarios (within quotes, without quotes, with other special characeters)
Thanks to Christos for reviews, help and feedback.
Revision 1.46: download - view: text, markup, annotated - select for diffs
Sat Sep 16 20:40:34 2017 UTC (7 years, 2 months ago) by abhinav
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +3 -3
lines
Fix indentation (convert spaces to tab)
Revision 1.43.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 26 02:52:55 2017 UTC (7 years, 7 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.43.2.1: preferred, colored; branchpoint 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43.2.1: +12 -6
lines
Sync with HEAD
Revision 1.44.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:53:10 2017 UTC (7 years, 7 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.44: preferred, colored; next MAIN 1.45: preferred, colored
Changes since revision 1.44: +12 -6
lines
Sync with HEAD
Revision 1.45: download - view: text, markup, annotated - select for diffs
Fri Apr 21 05:38:03 2017 UTC (7 years, 7 months ago) by abhinav
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-20170426,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
netbsd-8-base,
netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
netbsd-8,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
bouyer-socketcan-base1
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +12 -6
lines
When doing filename autocompletion, append a trailing slash at the end of directory
names. We already do this when there is only one completion option but
in case of of multiple completion options, it wasn't being done.
ok christos@
Revision 1.43.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 4 14:48:53 2016 UTC (8 years, 1 month ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +3 -6
lines
Sync with HEAD
Revision 1.44: download - view: text, markup, annotated - select for diffs
Mon Oct 31 17:46:32 2016 UTC (8 years, 1 month ago) by abhinav
Branches: MAIN
CVS tags: pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +3 -6
lines
Fix file name auto completion in one specific case.
For example if you do
$mkdir -p /tmp/dir1/dir2
Then:
$ls /tmp/di <TAB> auto completes to
$ls /tmp/dir1/
Hitting <TAB> again auto completes to
$ls /tmp/dir1/dir2
Whereas it should auto complete to
$ls /tmp/dir1/dir2/
Essentially, in cases like above where you have to hit <TAB> twice to get
to the match and there is only one match (because only one file/sub-directory) then
auto complete doesn't work correctly. It doesn't append a trailing slash (in case
of directory) or a space (in case of a file) to the match name.
I have tested file name completion in sh(1) and symbol completion in gdb after
this change.
Revision 1.43: download - view: text, markup, annotated - select for diffs
Mon Apr 11 00:50:13 2016 UTC (8 years, 8 months ago) by christos
Branches: MAIN
CVS tags: pgoyette-localcount-base,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
localcount-20160914
Branch point for: pgoyette-localcount
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +6 -8
lines
Char -> wchar_t from Ingo Schwarze.
Revision 1.42: download - view: text, markup, annotated - select for diffs
Mon Apr 11 00:22:48 2016 UTC (8 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +9 -9
lines
more macro WIDECHAR undoing from Ingo Schwarze.
Revision 1.41: download - view: text, markup, annotated - select for diffs
Sat Apr 9 18:47:05 2016 UTC (8 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +4 -4
lines
Change some 0's to NULL's from Pedro Giffuni
Revision 1.40: download - view: text, markup, annotated - select for diffs
Wed Feb 17 19:47:49 2016 UTC (8 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +11 -11
lines
whitespace and header sorting changes (Ingo Schwarze). No functional changes.
Revision 1.39: download - view: text, markup, annotated - select for diffs
Tue Feb 16 22:53:14 2016 UTC (8 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +2 -3
lines
More header cleanups from Ingo Schwarze.
Revision 1.38: download - view: text, markup, annotated - select for diffs
Tue Feb 16 19:08:41 2016 UTC (8 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +2 -3
lines
more include file cleanup (Ingo Schwarze)
Revision 1.37: download - view: text, markup, annotated - select for diffs
Tue Feb 16 15:53:48 2016 UTC (8 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +2 -4
lines
From Ingo Scharze:
Let "el.h" include everything needed for struct editline,
and don't include that stuff multiple times. That also improves
consistency, also avoids circular inclusions, and also makes it
easier to follow what is going on, even though not quite as nice.
But it seems like the best we can do...
Revision 1.36: download - view: text, markup, annotated - select for diffs
Tue Feb 16 14:08:25 2016 UTC (8 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -2
lines
cleanup chartype.h includes (Ingo Schwarze)
Revision 1.35: download - view: text, markup, annotated - select for diffs
Tue Feb 16 14:06:05 2016 UTC (8 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +3 -3
lines
cleanup inclusion of histedit.h (Ingo Schwarze)
Revision 1.32.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 13:33:55 2015 UTC (9 years, 7 months ago) by martin
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0
Diff to: previous 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32: +4 -4
lines
Sync lib/libedit with head, requested by christos in #753:
lib/libedit/Makefile 1.53
lib/libedit/chartype.h 1.13
lib/libedit/editline.3 1.83-1.84
lib/libedit/editrc.5 1.28-1.29
lib/libedit/eln.c 1.18
lib/libedit/filecomplete.c 1.33-1.34
lib/libedit/readline.c 1.112-1.115
Man page improvements, fix overlapping strcpy, improve readline
compatibility, clang build fix.
Revision 1.34: download - view: text, markup, annotated - select for diffs
Sat Oct 18 15:07:02 2014 UTC (10 years, 1 month ago) by riz
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +3 -3
lines
callers's -> caller's
Revision 1.33: download - view: text, markup, annotated - select for diffs
Sat Oct 18 08:33:23 2014 UTC (10 years, 1 month ago) by snj
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +4 -4
lines
src is too big these days to tolerate superfluous apostrophes. It's
"its", people!
Revision 1.31.8.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:02:17 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.31: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31: +4 -3
lines
Rebase to HEAD as of a few days ago.
Revision 1.31.18.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:51:57 2014 UTC (10 years, 4 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.31: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31: +4 -3
lines
Rebase.
Revision 1.32: download - view: text, markup, annotated - select for diffs
Thu Jun 5 22:07:42 2014 UTC (10 years, 6 months ago) by christos
Branches: MAIN
CVS tags: tls-maxphys-base,
tls-earlyentropy-base,
netbsd-7-base
Branch point for: netbsd-7
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +4 -3
lines
PR/48876: Dmitriy Grigoryev: Core dump in readline lib on attempted expansion
Make sure we have 2 matches before calling strcmp().
Revision 1.31: download - view: text, markup, annotated - select for diffs
Fri Sep 16 16:13:16 2011 UTC (13 years, 3 months ago) by plunky
Branches: MAIN
CVS tags: yamt-pagecache-tag8,
yamt-pagecache-base9,
yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
yamt-pagecache-base4,
yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
yamt-pagecache,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
netbsd-6-base,
netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
netbsd-6,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus,
agc-symver-base,
agc-symver
Branch point for: tls-maxphys,
tls-earlyentropy
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +3 -3
lines
NULL does not need a cast, here
Revision 1.30: download - view: text, markup, annotated - select for diffs
Tue Aug 16 16:25:15 2011 UTC (13 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +13 -10
lines
re-enable -Wconversion
Revision 1.29: download - view: text, markup, annotated - select for diffs
Fri Jul 29 23:44:44 2011 UTC (13 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -3
lines
pass -Wconversion
Revision 1.28: download - view: text, markup, annotated - select for diffs
Fri Jul 29 20:58:07 2011 UTC (13 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -7
lines
- fix unused params
- unconditionalize vis.h
Revision 1.27: download - view: text, markup, annotated - select for diffs
Fri Jul 29 15:16:33 2011 UTC (13 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +8 -8
lines
KNF return (\1); -> return \1;
Revision 1.26: download - view: text, markup, annotated - select for diffs
Thu Jul 28 20:50:55 2011 UTC (13 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +29 -25
lines
kill ptr_t and ioctl_t, add * sizeof(*foo) to all allocations.
Revision 1.25: download - view: text, markup, annotated - select for diffs
Thu Jul 28 17:33:55 2011 UTC (13 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +7 -4
lines
fix unused variable warnings on systems without _r functions
Revision 1.24: download - view: text, markup, annotated - select for diffs
Thu Jul 28 00:50:23 2011 UTC (13 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +19 -15
lines
eliminate alloca for portability
portable getpw{nam,uid}
Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Dec 6 00:05:38 2010 UTC (14 years ago) by dholland
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +16 -7
lines
Improve previous to avoid changing the interface of an externally
exposed function. (But note that this function is neither documented
nor declared in any installed header file, and it probably should not
be externally exposed.) Related to PR 44183, closes PR 44186.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Thu Dec 2 04:42:46 2010 UTC (14 years ago) by dholland
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +3 -3
lines
add const, from PR 44183.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Thu Dec 2 04:35:17 2010 UTC (14 years ago) by dholland
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +35 -28
lines
Fix up bodgy code for printing completion matches; it used to sometimes
skip entries, print (null), run off the end of the array, or occasionally
receive SIGSEGV, and now will, hopefully at least, do none of that.
Based in part on the patch in PR 44183 from Sergio Acereda; I also
did some tidyup and fixed it to print top-to-bottom first like ls(1).
Revision 1.20: download - view: text, markup, annotated - select for diffs
Mon Nov 15 21:24:31 2010 UTC (14 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -3
lines
don't increment i twice in the loop. From Michael Byrnes
Revision 1.19: download - view: text, markup, annotated - select for diffs
Tue Jun 1 18:20:26 2010 UTC (14 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +15 -8
lines
tidy up memory allocation and don't unnecessarily print "./" before names.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Jan 18 19:17:42 2010 UTC (14 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +4 -4
lines
PR/42637: Joachim Kuebart: Shell tab completion crashes due to libedit stack
smashing
Revision 1.17: download - view: text, markup, annotated - select for diffs
Wed Dec 30 22:37:40 2009 UTC (14 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +22 -18
lines
Wide character support (UTF-8) from Johny Mattsson; currently disabled.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Mon Dec 28 21:55:38 2009 UTC (14 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +8 -5
lines
improve on the listing display by printing only one character after the
filename not two, and no trailing blanks. I will revisit this when I write
the ls-F code.
Revision 1.13.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 19:18:29 2009 UTC (15 years, 7 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13: +12 -12
lines
Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
Revision 1.15: download - view: text, markup, annotated - select for diffs
Mon Feb 16 00:15:45 2009 UTC (15 years, 9 months ago) by christos
Branches: MAIN
CVS tags: matt-premerge-20091211,
jym-xensuspend-nbase,
jym-xensuspend-base
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -3
lines
fix sign compare issues.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Feb 15 21:55:23 2009 UTC (15 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +11 -11
lines
pass lint on _LP64.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Mon Jan 26 17:32:41 2009 UTC (15 years, 10 months ago) by apb
Branches: MAIN
Branch point for: jym-xensuspend
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +8 -8
lines
Define HAVE_STRUCT_DIRENT_D_NAMLEN in config,h, and test it when
deciding whether to use entry->d_namlen or strlen(entry->d_name).
Addresses PR 40477 by Robert Millan.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun Jan 11 15:00:23 2009 UTC (15 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +4 -4
lines
- insert a space after the recognized string if it was an exact match
- initialize properly the string used for completion.
From Alex Bligh alex at alex dot org dot uk
- Make char constants consistent
Revision 1.10.16.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:30:35 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10: +2 -5
lines
sync with head.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue Apr 29 06:53:01 2008 UTC (16 years, 7 months ago) by martin
Branches: MAIN
CVS tags: yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
wrstuden-revivesa,
netbsd-5-base,
netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2-3-RELEASE,
netbsd-5-2-2-RELEASE,
netbsd-5-2-1-RELEASE,
netbsd-5-2,
netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-5-RELEASE,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
netbsd-5,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb5-mips64,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-base2,
hpcarm-cleanup-nbase
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -5
lines
Convert to new 2 clause license
Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Nov 9 16:58:38 2006 UTC (18 years, 1 month ago) by christos
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base,
wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
netbsd-4-base,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
netbsd-4,
matt-mips64-base,
matt-mips64,
matt-armv6-prevmlocking,
matt-armv6-nbase,
matt-armv6-base,
matt-armv6,
keiichi-mipv6-base,
keiichi-mipv6,
hpcarm-cleanup-base,
hpcarm-cleanup,
cube-autoconf-base,
cube-autoconf
Branch point for: yamt-pf42
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +15 -7
lines
don't use alloca with ssp.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Mon Aug 21 12:45:30 2006 UTC (18 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -7
lines
Change to a 3 clause copyright after permission of the holders.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed Aug 3 13:41:38 2005 UTC (19 years, 4 months ago) by christos
Branches: MAIN
CVS tags: abandoned-netbsd-4-base,
abandoned-netbsd-4
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -3
lines
Fix reversed test; from Gerry Swislow
Revision 1.7: download - view: text, markup, annotated - select for diffs
Sat Jun 11 18:18:59 2005 UTC (19 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +7 -7
lines
PR/30500: Paul Shupak: Inconsistent definition of tilde_expand().
Provide a layer of indirection between the readline compatibility functions
and our internal implementation, so that we have the freedom to change the
function signature.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri Jun 10 20:21:00 2005 UTC (19 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +26 -27
lines
Bug reported from Martin Dietze:
The place to change the completion_append_character is
usually somewhere in the `rl_completion_entry_function'
callback which is where one usually can distinguish between
file- or dir-like entries to append a slash for dirs etc.
This does no longer work since `fn_complete()' takes the
`append_character' as argument before the callback is executed,
so that changes to the variable `rl_completion_append_character'
have in fact no effect for the current completion.
Fix by adding a function that returns the rl_completion_append_character,
when it gets passed in a filename in readline emulation.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Wed May 18 22:34:41 2005 UTC (19 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +5 -3
lines
Make completion_matches non-static since readline wants it.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu May 12 15:48:40 2005 UTC (19 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +13 -7
lines
PR/30215: Kouichirou Hiratsuka: /bin/sh dumps core with tabcomplete
Don't core-dump when trying to complete an empty line; instead assume ./
Revision 1.3: download - view: text, markup, annotated - select for diffs
Mon May 9 20:10:33 2005 UTC (19 years, 7 months ago) by dsl
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +35 -32
lines
Use getpwuid_r(getuid(), ...) to expand ~/....
Don't replace ~xyz with /home/xyz when expanding ~
Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat May 7 16:28:32 2005 UTC (19 years, 7 months ago) by dsl
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +3 -3
lines
gdb directly calls filename_completion_function()
Revision 1.1: download - view: text, markup, annotated - select for diffs
Sat May 7 16:01:25 2005 UTC (19 years, 7 months ago) by dsl
Branches: MAIN
Separate out the filename completion functions from the readline() code.
Pass in loads of parameters instead of relying on shed-loads of global
variables to modify the behaviour.
The filename completion code can now be enabled by code that uses el_gets().
(eg /bin/sh)
CVSweb <webmaster@jp.NetBSD.org>