mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-03 10:21:46 +02:00
18920: fix unset IFS betterer
This commit is contained in:
parent
2e70a25d46
commit
c2ed9f96a7
3 changed files with 12 additions and 2 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,8 +1,14 @@
|
|||
2003-08-01 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 18920: Src/utils.c, Completion/Core/Base/_main_complete: update
|
||||
18916 to use space to join if unset, as per POSIX; set IFS locally
|
||||
in completion just in case.
|
||||
|
||||
2003-08-01 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 189xx: Src/glob.c: fix minor bug with f glob qualifier
|
||||
* 18922: Src/glob.c: fix minor bug with f glob qualifier
|
||||
|
||||
* 18xxx: Completion/Unix/Command/_chmod: new chmod completion
|
||||
* 18921: Completion/Unix/Command/_chmod: new chmod completion
|
||||
|
||||
2003-08-01 Peter Stephenson <pws@csr.com>
|
||||
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
# The main loop of the completion code. This is what is called when
|
||||
# completion is attempted from the command line.
|
||||
|
||||
# In case non-standard separators are in use.
|
||||
local IFS=$' \t\n\0'
|
||||
|
||||
# If you want to complete only set or unset options for the unsetopt
|
||||
# and setopt builtin, un-comment these lines:
|
||||
|
|
|
@ -2058,6 +2058,8 @@ sepjoin(char **s, char *sep, int heap)
|
|||
if (ifs) {
|
||||
*p++ = *ifs;
|
||||
*p++ = *ifs == Meta ? ifs[1] ^ 32 : '\0';
|
||||
} else {
|
||||
*p++ = ' ';
|
||||
}
|
||||
*p = '\0';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue