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
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
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
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
"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
} 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
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
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=
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
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
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
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
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
) 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
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
'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
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
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
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,
; >
> > 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
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.
> >
> >
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
*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
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';
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
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: +
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
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
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
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*
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
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]
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
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
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]
(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
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
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 &&
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
+ 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
;& 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
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
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
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
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]
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
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]
ot;${(@)${(@)tmp:#*:*}//[^a-zA-Z0-9-]}")
+ "${(@)${(@)tmp:#*:*}//[^a-zA-Z0-9_-]}")
if [[ -n "$descr" && "$descr" != ': : ' ]]; then
cache+=( "${(@)^tmp}${descr}" )
else
--
Peter Stephenson <[E
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
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/
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
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
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
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
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
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
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
57 matches
Mail list logo