Bug#844710: Fwd: Re: [Pkg-zsh-devel] Bug#844710: autocorrection suggested rm for typing mr without typing "y"

2016-11-20 Thread Peter Stephenson
On Sat, 19 Nov 2016 21:54:05 + Daniel Shahaf wrote: > If we do keep space and tab then we should document them. I'm inclined to get rid of them. They've been undocumented and not even mentioned in the prompt for a quarter century. If this hasn't been causing mayhem that's just luck. We ar

Bug#765410: ulimit broken as root if it fails once [origin: goswin-...@web.de]

2014-10-16 Thread Peter Stephenson
On Wed, 15 Oct 2014 19:49:13 -0700 Bart Schaefer wrote: > This could also be fixed by having bin_ulimit read back the actual limit > after a failure to set the hard limit and store that instead of keeping > the "desired" hard limit around and trying to change it again. I think that would be prefe

Bug#654225: PATCH: Restore `LC_ALL' when setting `LANG'

2012-01-04 Thread Peter Stephenson
tlocale() gets run when necessary. -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Bug#353863: Bugreport: completion hanging at ubo - endless loop

2011-02-24 Thread Peter Stephenson
On Wed, 23 Feb 2011 11:30:04 + Peter Stephenson wrote: > On Wed, 23 Feb 2011 11:50:18 +0100 > Michael Prokop wrote: > > in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=353863 > > Sebastien Desreux reported a bug about zsh with its > > completion system

Bug#353863: Bugreport: completion hanging at ubo - endless loop

2011-02-23 Thread Peter Stephenson
"l" which it thinks is three characters long. It then loops for ever reading the null byte at the end of the string waiting to get to the third character. I think the answer might be never to expand aliases when the "x" would be added to the command word. That might be easie

Bug#593426: zsh: Status of background jobs not updated

2010-08-18 Thread Peter Stephenson
} else { + int pid = atoi(*argv); + if (kill(pid, sig) == -1) { + zwarnnam("kill", "kill %s failed: %e", *argv, errno); + returnval++; + } else if (sig == SIGCONT) { + Job jn; + Process

Bug#582258: zsh-mime-setup disables usual completions

2010-05-23 Thread Peter Stephenson
i +if (( list )); then + for (( i = 1; i <= ${#execargs}; i++ )); do +(( i == 1 )) || print -n " " +arg=${execargs[i]} +if [[ -n $arg ]]; then + print -rn -- ${(q)arg} +else + print -n "''" +fi + done + print + return 0 +fi + # No

Bug#579209: zsh: insert-last-word problem after completion

2010-04-26 Thread Peter Stephenson
On Mon, 26 Apr 2010 17:42:10 +0200 Vincent Lefevre wrote: > On 2010-04-26 13:11:39 +0100, Peter Stephenson wrote: > > On Mon, 26 Apr 2010 12:53:31 +0200 > > Vincent Lefevre wrote: > > > After a "zsh -f": > > > > > > % alias my_echo=

Bug#579209: zsh: insert-last-word problem after completion

2010-04-26 Thread Peter Stephenson
ter: > > my_echo true > my_echo false > > i.e. the "&" should be ignored by insert-last-word. That's not a bug. As Mikael suggested, you need to use something that's smart about syntax; that's not the job of insert-last-word, which only knows

Bug#544528: zsh-beta: FTBFS on GNU/kFreeBSD (hang in testsuite)

2009-09-02 Thread Peter Stephenson
gt; > > > for char in y Y n N X $'\n'; do > >read -q -u0 <<<$char > >print $? > > done > > > > > > The test hangs in "nohup dpkg-buildpackage -b -uc" build, > > but passes in "dpkg-buildpack

Bug#537283: homing in

2009-09-02 Thread Peter Stephenson
store(); return 1; } +lexrestore(); if (*curtestarg) { zwarnnam(name, "too many arguments"); -- Peter Stephenson Software Engineer Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited Churchill House, Cambridge Business Par

Bug#535232: zsh: segfaults while trying to free in hend

2009-08-16 Thread Peter Stephenson
en*sizeof(short)); chline = NULL; +chwords = NULL; histactive = 0; if (isset(SHAREHISTORY)? histfileIsLocked() : isset(INCAPPENDHISTORY)) savehistfile(hf, 0, HFILE_USE_OPTIONS | HFILE_FAST); -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephen

Bug#537596: regression: parse error near `()' in function definition

2009-07-20 Thread Peter Stephenson
gets a bit recursive. This can be avoided if you use `function' to define a function, which doesn't expand aliases. It is possible to argue for extra warnings somewhere in this mess. Bart Schaefer's rule is: Define first those aliases you expect to use in the body of a f

Bug#527171: [zsh] segfaults on long environment variables

2009-05-06 Thread Peter Stephenson
) is supposed to fail gracefully and set errno to ENOMEM if it doesn't fit in the environment but apparently isn't. I believe the environment size is limited by ARG_MAX on POSIX-like systems, but it's not usually tested by the caller (which doesn't know how much spac

Bug#517008: alias not expanded with zsh -c

2009-03-26 Thread Peter Stephenson
On Wed, 25 Mar 2009 17:14:31 -0700 Bart Schaefer wrote: > On Mar 25, 6:20pm, Peter Stephenson wrote: > } > } But yes, I share your feeling that this isn't a particularly vital > } addition, it just looked easy to do like other shells in compatability > } mode, which is the po

Bug#517008: alias not expanded with zsh -c

2009-03-25 Thread Peter Stephenson
't a particularly vital addition, it just looked easy to do like other shells in compatability mode, which is the point of that. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK

Bug#517008: alias not expanded with zsh -c

2009-03-25 Thread Peter Stephenson
On Wed, 25 Mar 2009 16:30:08 + Peter Stephenson wrote: >Clint Adams wrote: >>On Wed, Feb 25, 2009 at 03:28:50AM +0100, Vincent Lefevre wrote: >>> Aliases are not expanded with the -c option, as shown below. >>> >>> vin% cmd=$(printf "emulate sh\nalias

Bug#517008: alias not expanded with zsh -c

2009-03-25 Thread Peter Stephenson
in one go, so the alias isn't available until afterwards (by which time the shell has exited). This is the same behaviour as other chunks of code read in one go. To get script-like behaviour, don't use "-c", use a script argument. -- Peter Stephenson Softw

Bug#519571: Bug#514857: zsh -c 'set -e; ! true; echo OK' fails

2009-03-25 Thread Peter Stephenson
Clint Adams wrote: > A trio regarding set -e: I am not going anywhere near this until the clarification in the standard gets through. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ,

Bug#516998: zsh regards reserved word as candidate for alias substitution

2009-03-25 Thread Peter Stephenson
; > > > instead of running command "foo". ksh93, pdksh, dash and bash > > in POSIX mode all behave correctly. > > Where it seems that "correctly" means that setting the alias > succeeds, but ! is never substituted. This was fixed in 26675. -- Peter Stephens

Bug#519535: history expansion: modifier completion missing

2009-03-16 Thread Peter Stephenson
On Sun, 15 Mar 2009 06:22:53 + Clint Adams wrote: > On Fri, Mar 13, 2009 at 11:55:55AM +0100, martin f krafft wrote: > > I tried to show off zsh to a sceptic today and had to find out the > > hard way that it does not (yet) provide completion for history > > expansion modifiers, e.g. > > > >

Bug#162291: Bug in executable completion: unable to handle .. it $PATH

2009-01-07 Thread Peter Stephenson
Bart Schaefer wrote: > On Jan 7, 8:09pm, Peter Stephenson wrote: > } > } This is done explicitly in the code, but I have no idea why; it precedes > } the CVS archive. The function isrelative() is only used by hashdir(). > > I believe it's a security thing, so that an inh

Bug#418199: Segfault on really long paths

2009-01-05 Thread Peter Stephenson
*p = *t++ ^ 32; -if (*t) - return NULL; -if (p - fn == t - file_name) - return (char *) file_name; *p = '\0'; return fn; } -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Bug#501851: zsh: Completion fails if a directory name contains '(', ')' and 'Ą '.

2008-10-18 Thread Peter Stephenson
stopl = m->lalen; } if (stopp) - for (tmp = add, tl = al; tl >= stopl; tl--, tmp++) + for (tmp = add, tl = al; tl >= stopl; ) { if (pattern_match(stopp, tmp, NULL, NULL)) { *tmp = '\0';

Bug#501851: zsh: Completion fails if a directory name contains '(', ')' and 'Ą '.

2008-10-14 Thread Peter Stephenson
var(tpat) may also be one or two stars, `tt(*)' or `tt(**)'. This means that the pattern on the command line can match -- Peter Stephenson <[EMAIL PROTECTED]> Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4

Bug#501851: zsh: Completion fails if a directory name contains '(', ')' and 'Ą '.

2008-10-13 Thread Peter Stephenson
ng characters? Please send the output from running "^X?" if there no obvious difference. -- Peter Stephenson <[EMAIL PROTECTED]> Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +

Bug#501851: zsh: Completion fails if a directory name contains '(', ')' and 'Ą '.

2008-10-11 Thread Peter Stephenson
On Sat, 11 Oct 2008 22:47:52 +0900 Morita Sho <[EMAIL PROTECTED]> wrote: > $~tmp1 expansion seems not working correctly for a pattern '\(\)Ą/*'. Thanks for the clear analysis. The pattern gets divided up into chunks because of the backslashed characters, but we don't report that it wasn't a pure

Bug#497663: Tab completion for vim is broken

2008-09-04 Thread Peter Stephenson
t; > But can after adding emulate csh above those lines. > > Anyone know which option might be the culprit here? csh_junkie_quotes --- ../zsh-debug/zsh/Completion/compinit2008-06-06 17:43:35.0 +0100 +++ Completion/compinit 2008-09-04 13:34:21.0 +0100 @@ -139,6 +139

Bug#486785: tab completion broken

2008-07-06 Thread Peter Stephenson
On Mon, 30 Jun 2008 21:35:22 +0100 Peter Stephenson <[EMAIL PROTECTED]> wrote: > I'm now a little worried it should be going into menu completion at this > point even without the option being set; the documentation for > _approximate says "the completer will normally sta

Bug#486785: tab completion broken

2008-06-30 Thread Peter Stephenson
On Sun, 22 Jun 2008 23:23:42 +0100 Peter Stephenson <[EMAIL PROTECTED]> wrote: > On Thu, 19 Jun 2008 21:15:39 + > Clint Adams <[EMAIL PROTECTED]> wrote: > > Using only the following zshrc, ls /tmp/.X2 results in the entire > > argument being elided (/tmp/.X*

Bug#486785: tab completion broken

2008-06-22 Thread Peter Stephenson
On Thu, 19 Jun 2008 21:15:39 + Clint Adams <[EMAIL PROTECTED]> wrote: > Using only the following zshrc, ls /tmp/.X2 results in the entire > argument being elided (/tmp/.X* exists but /tmp/.X2* does not). > > --8<--zshrc--8<-- > autoload -U compinit > compinit > > zstyle ':completion:*' comple

Bug#482662: zsh: completion with locate gives extra output

2008-05-25 Thread Peter Stephenson
case $input in (*mlocate*) ltype=mlocate @@ -21,7 +21,7 @@ ltype=slocate ;; -(*(#i)gnu locate*) +(*(#i)gnu locate*|*findutils*gnu*) ltype=gnu ;; -- Peter Stephenson <[EMAIL PROTECTED]> Web page now at http://homepage.ntlworld.com/p.w.stephenson/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Bug#482346: zsh doesn't always wait for its children (-> zombie)

2008-05-24 Thread Peter Stephenson
On Sat, 24 May 2008 14:44:45 +0200 Vincent Lefevre <[EMAIL PROTECTED]> wrote: > This is 100% reproducible with both zsh and zsh-beta. If it's just a matter of starting vlc and trying to kill it for you, then there's something more to track down since this doesn't happen for me (Fedora 9). There m

Bug#480889: zcompiling messes with alias-in-function expansion

2008-05-12 Thread Peter Stephenson
is isn't going to change; you need to find a workaround. The standard approach is to use functions in such chunks of code. Aliases tend to be regarded as largely an interactive feature. This ought to be documented somewhere, if it isn't. -- Peter Stephenson <[EMAIL PROTECT

Bug#479764: shell builtin mv fails to move files across devices

2008-05-06 Thread Peter Stephenson
n't something you need (though in any given case it may be, as well as a whole load of other stuff the shell doesn't provide). -- Peter Stephenson <[EMAIL PROTECTED]> Web page now at http://homepage.ntlworld.com/p.w.stephenson/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Bug#479576: incorrect interpretation of LS_COLORS link=target by compsys

2008-05-06 Thread Peter Stephenson
(status); + /* +* with just the slightest hint of a note of infuriation: +* mode here is the menu mode, not the file mode, despite +* the fact we're in a file dealing with file highlighting; +* but that's OK, because s is a menu stack

Bug#478019: zsh: Should handle non-breaking space as word separator

2008-04-26 Thread Peter Stephenson
e separated by a "non-breaking" space. Is it or isn't it breakable? - This isn't a general solution to mistyping anyway. You might be able to fix alt-gr space with xmodmap or the terminal emulator translation table. (Yes, I know "a little bit two-faced" is m

Bug#369305: zsh: failed to write history file /home/sven/.zsh-history: no such file or directory

2008-03-06 Thread Peter Stephenson
histfile() was just a rewrite? +*/ free(tmpfile); tmpfile = NULL; /* Avoid an error about HISTFILE.new */ out = NULL; @@ -2302,7 +2308,7 @@ } else ret = -1; -if (ret < 0 && err) { +if (ret < 0 &&

Bug#468386: zsh-beta: Slow command completion

2008-02-28 Thread Peter Stephenson
n the doc that this level of verbosity has speed implications. The style is then reusable if this crops up elsewhere. Bart may have more drastic suggestions... -- Peter Stephenson <[EMAIL PROTECTED]> Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Ro

Bug#466655: the expression {x=(); echo ${+x[(r)blah]}} changes meaning between 4.3.2 and current version

2008-02-27 Thread Peter Stephenson
+ print ${+x} ${+x[1]} ${+x[(r)foo]} ${+x[(r)bar]} +0:$+... with arrays +>1 0 0 0 +>1 1 1 0 + set1=set1v null1= print ${set1:-set1d} ${set1-set2d} ${null1:-null1d} ${null1-null2d} x -- Peter Stephenson <[EMAIL PROTECTED]> Software Engineer CSR PLC, Churchill Hou

Bug#317773: LC_ALL=C foo, where foo is a shell function

2008-02-21 Thread Peter Stephenson
;& tpm->env) + delenv(tpm); tpm->node.flags = pm->node.flags; switch (PM_TYPE(pm->node.flags)) { case PM_SCALAR: -- Peter Stephenson <[EMAIL PROTECTED]> Software Engineer CSR PLC, Churchill Hous

Bug#463507: zsh: Completion fails with: "_main_complete:161: permission denied:"

2008-02-05 Thread Peter Stephenson
Peter Stephenson wrote: > + if (( ${#completers} == 0 )); then > +completers[_complete]=1 > + fi Come to think of it, the default should almost certainly be the same as what the completion system uses if the style isn't set, i.e. with _ignored, too. I'll commit

Bug#463507: zsh: Completion fails with: "_main_complete:161: permission denied:"

2008-02-05 Thread Peter Stephenson
ist _menu _expand _complete _ignored _match _correct _approximate _prefix) # TODO: these are a bit brief, so could provide some more detailed help. -- Peter Stephenson <[EMAIL PROTECTED]> Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road

Bug#457076: zsh: is-at-least does not work properly

2007-12-19 Thread Peter Stephenson
unction of your locale ($LANG setting)? It's possible it's not translating upper case characters to lower case properly. Ah, in fact it probably is... 2007-03-15 Peter Stephenson <[EMAIL PROTECTED]> * 23219: Src/options.c: Ismail Dönmez reported that lower

Bug#457076: zsh: is-at-least does not work properly

2007-12-19 Thread Peter Stephenson
e -L zsh" here but it's exactly equivalent to what's there already. -- Peter Stephenson <[EMAIL PROTECTED]> Web page now at http://homepage.ntlworld.com/p.w.stephenson/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Bug#455376: tab completion following "mutt -f =" no longer works

2007-12-14 Thread Peter Stephenson
er working. Can you narrow it down to when it > > did? > > On a different machine, zsh 4.3.2-25 (Debian stable), using the above > four-line .zshrc, works as I'd like. Looking at _mailboxes suggests it should work, but I don't use mutt so can't follow this. Can som

Bug#185228: [EMAIL PROTECTED]: Bug#185228: zsh: Incorrect filename generation with glob qualifier mh+]

2007-12-13 Thread Peter Stephenson
UTANG: if (!intpos) { - if (in_brace_param || sub) + if (in_brace_param || pct || sub) break; else goto brk; -- Peter Stephenson <[EMAIL PROTECTED]> Web page now at http://homepage.ntlworld.com/p.w.stephenson/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Bug#377765: zsh: completion of configure script does not handle underscore properly

2007-12-13 Thread Peter Stephenson
ot;${(@)${(@)tmp:#*:*}//[^a-zA-Z0-9-]}") + "${(@)${(@)tmp:#*:*}//[^a-zA-Z0-9_-]}") if [[ -n "$descr" && "$descr" != ': : ' ]]; then cache+=( "${(@)^tmp}${descr}" ) else -- Peter Stephenson <[E

Bug#451382: i18n is NOT so easy!

2007-12-09 Thread Peter Stephenson
o parts is found. Fine, that gives us an easier test for whether there's a special msgid anyway. (I would still propose that msgid has to consist only of shell identifier characters for simplicity.) -- Peter Stephenson <[EMAIL PROTECTED]> Web page now at http://homepage.ntlworld.com

Bug#451382: i18n is NOT so easy!

2007-12-09 Thread Peter Stephenson
On Fri, 07 Dec 2007 17:26:57 + Peter Stephenson <[EMAIL PROTECTED]> wrote: > Clint Adams wrote: > > On Fri, Dec 07, 2007 at 02:11:41PM +, Peter Stephenson wrote: > > > Found it: see thread around > > > > > > http://www.zsh.org/mla/workers/2006/

Bug#451382: i18n is NOT so easy!

2007-12-07 Thread Peter Stephenson
Clint Adams wrote: > On Fri, Dec 07, 2007 at 02:11:41PM +0000, Peter Stephenson wrote: > > Found it: see thread around > > > > http://www.zsh.org/mla/workers/2006/msg00753.html > > I think it would be easier to do something like bash's $"" interface t

Bug#451382: i18n is NOT so easy!

2007-12-07 Thread Peter Stephenson
Peter Stephenson wrote: > On Thu, 6 Dec 2007 11:10:22 -0500 > Clint Adams <[EMAIL PROTECTED]> wrote: > We need a completion framework for translation which might or might not use > gettext in the back end. There were some discussions about this a while > ago, I think about

Bug#451382: i18n is NOT so easy!

2007-12-07 Thread Peter Stephenson
an't find them now. This is a big project somebody will have to volunteer for. -- Peter Stephenson <[EMAIL PROTECTED]> Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070

Bug#353607: Related problem?

2007-10-22 Thread Peter Stephenson
return 1; -if (!(dirh = opendir(name))) +if (!(dirh = opendir(uname))) return 0; while ((de = readdir(dirh))) { -- Peter Stephenson <[EMAIL PROTECTED]> Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070

Bug#416970: reverse-menu-complete crashes

2007-06-06 Thread Peter Stephenson
Tab. > > > > vin% aaazsh: segmentation fault (core dumped) zsh -f > > vin:~[139]> > > Now that I can reproduce. Should be fixed by 23478 (2007-05-28). -- Peter Stephenson <[EMAIL PROTECTED]> Software Engineer CSR PLC, Churchill House, Cambridge

Bug#411050: zsh: configure completion doesn't work after --enable-shared

2007-02-16 Thread Peter Stephenson
2=${${opt}//[^a-zA-Z0-9-]}=${dir}${odescr} + fi if [[ "$descr" = :\=* ]]; then cache+=( "${opt2}::${(L)${opt%\]}#*\=}: " ) elif [[ "$descr" = ::* ]]; then -- Peter Stephenson <[EMAIL PROTECTED]> Software Eng

Bug#310872: zsh can't be a ksh replacement (can't trap ERR).

2005-06-01 Thread Peter Stephenson
retrieving revision 1.73 diff -u -r1.73 zsh.h --- Src/zsh.h 12 Apr 2005 15:11:12 - 1.73 +++ Src/zsh.h 1 Jun 2005 10:26:00 - @@ -1852,7 +1852,8 @@ /* Mask to get the above flags */ #define ZSIG_MASK (ZSIG_TRAPPED|ZSIG_IGNORED|ZSIG_FUNC) /* No. of bits to shift local level when sto