Re: [patch] ksh: autocomplete special characters
On Sun, Apr 04, 2010 at 02:23:35PM +0930, Matthew Haub wrote: > Hello, > > On Sun, Apr 04, 2010 at 11:41:56AM +0930, Matthew Haub wrote: > > The following patch fixes ksh autocomplete support for files within > > directories containing []:`$= characters. This also fixes the problem > > ray@ was experiencing with the back quotes in PR user/6006. > > Here's the same patch with an unnecessary if statement removed. > > Index: edit.c > === > RCS file: /cvs/src/bin/ksh/edit.c,v > retrieving revision 1.33 > diff -u edit.c > --- edit.c2 Aug 2007 10:50:25 - 1.33 > +++ edit.c4 Apr 2010 04:07:00 - > @@ -391,9 +391,20 @@ > continue; > } > > + /* except for characters that must be quoted to the lexer */ > + if (escaping) { > + escaping = 0; > + > + switch (toglob[i]) { > + case '[': > + case '`': > + case '$': > + toglob[idx++] = '\\'; > + } Above switch statement doesn't conform with style(9). Also it is missing "break;". Better this way: + switch (toglob[i]) { + case '[': + case '`': + case '$': + toglob[idx++] = '\\'; + break; + } --patrick
Re: [patch] ksh: autocomplete special characters
Hello, On Sun, Apr 04, 2010 at 11:41:56AM +0930, Matthew Haub wrote: > The following patch fixes ksh autocomplete support for files within > directories containing []:`$= characters. This also fixes the problem > ray@ was experiencing with the back quotes in PR user/6006. Here's the same patch with an unnecessary if statement removed. Index: edit.c === RCS file: /cvs/src/bin/ksh/edit.c,v retrieving revision 1.33 diff -u edit.c --- edit.c 2 Aug 2007 10:50:25 - 1.33 +++ edit.c 4 Apr 2010 04:07:00 - @@ -391,9 +391,20 @@ continue; } + /* except for characters that must be quoted to the lexer */ + if (escaping) { + escaping = 0; + + switch (toglob[i]) { + case '[': + case '`': + case '$': + toglob[idx++] = '\\'; + } + } + toglob[idx] = toglob[i]; idx++; - if (escaping) escaping = 0; } toglob[idx] = '\0'; @@ -847,7 +858,7 @@ int rval=0; for (add = 0, wlen = len; wlen - add > 0; add++) { - if (strchr("\\$(){}[]?*&;#|<>\"'`", s[add]) || strchr(ifs, s[add])) { + if (strchr("\\$(){}[]?*&;#|<>\"'=`:", s[add]) || strchr(ifs, s[add])) { if (putbuf_func(s, add) != 0) { rval = -1; break; Index: lex.c === RCS file: /cvs/src/bin/ksh/lex.c,v retrieving revision 1.44 diff -u lex.c --- lex.c 3 Jul 2008 17:52:08 - 1.44 +++ lex.c 4 Apr 2010 04:07:00 - @@ -289,7 +289,9 @@ c = getsc(); switch (c) { case '\\': - case '$': case '`': + case '$': + case '`': + case '[': *wp++ = QCHAR, *wp++ = c; break; case '"':
[patch] ksh: autocomplete special characters
Hello, The following patch fixes ksh autocomplete support for files within directories containing []:`$= characters. This also fixes the problem ray@ was experiencing with the back quotes in PR user/6006. Matthew Index: edit.c === RCS file: /cvs/src/bin/ksh/edit.c,v retrieving revision 1.33 diff -u edit.c --- edit.c 2 Aug 2007 10:50:25 - 1.33 +++ edit.c 4 Apr 2010 01:29:09 - @@ -391,6 +391,16 @@ continue; } + /* except for characters that must be quoted by the lexer */ + if (escaping) { + switch (toglob[i]) { + case '[': + case '`': + case '$': + toglob[idx++] = '\\'; + } + } + toglob[idx] = toglob[i]; idx++; if (escaping) escaping = 0; @@ -847,7 +857,7 @@ int rval=0; for (add = 0, wlen = len; wlen - add > 0; add++) { - if (strchr("\\$(){}[]?*&;#|<>\"'`", s[add]) || strchr(ifs, s[add])) { + if (strchr("\\$(){}[]?*&;#|<>\"'=`:", s[add]) || strchr(ifs, s[add])) { if (putbuf_func(s, add) != 0) { rval = -1; break; Index: lex.c === RCS file: /cvs/src/bin/ksh/lex.c,v retrieving revision 1.44 diff -u lex.c --- lex.c 3 Jul 2008 17:52:08 - 1.44 +++ lex.c 4 Apr 2010 01:29:09 - @@ -289,7 +289,9 @@ c = getsc(); switch (c) { case '\\': - case '$': case '`': + case '$': + case '`': + case '[': *wp++ = QCHAR, *wp++ = c; break; case '"':
Re: which ISO for a VM?
virtualize your brain. it is nice. On Fri, Apr 2, 2010 at 6:23 AM, Zachary Uram wrote: > I have never run OpenBSD before and want to try it out. Wondering if > there is an ISO I can run in VirtualBox? If not what is the > recommended method for users who wish to run OpenBSD in > virtualization? > > Regards, > Zach > > <>< http://www.fidei.org ><>
Re: Difference of threshold check: atactl smartstatus vs atactl readattr
Yeah I had a think about the wording as well and the only thing I could come up with was putting "Device reports" before both messages from smartstatus and that isn't that helpful. The man page seems pretty clear to me already, not sure it needs to be changed. On Sat, Apr 03, 2010 at 11:37:43AM +0100, Stuart Henderson wrote: > On 2010/04/03 07:51, Nicholas Marriott wrote: > > Maybe the message in one or other of the cases should be different? > > The message in readattr is slightly different as it talks about > values; I've tried a few other wordings but none have really improved > clarity. I'd be more in favour of adding a short explanation to > readattr in the manual (or just removing this check in readattr > so it just displays the values returned from the drive and > doesn't bother with any comparison..) > > smartstatus: > > No SMART threshold exceeded > SMART threshold exceeded! > > readattr: > > One or more threshold values exceeded!
Re: Difference of threshold check: atactl smartstatus vs atactl readattr
Thanks for the explanation. That was the information I was searching for. The drive has failures (writing is very slow) and the smartstatus check does not reveal the problem. Therefore, I would prefer to keep the extra-checking of readattr in future and ignore the "intelligent" decision the drive makes. This seems to be manufacturer depended and not very reliable (at least, for me in this case). Adding a short explanation in the readattr manual is a good choice. On Apr 3, 2010, at 12:37 PM, Stuart Henderson wrote: > On 2010/04/03 07:51, Nicholas Marriott wrote: >> Maybe the message in one or other of the cases should be different? > > The message in readattr is slightly different as it talks about > values; I've tried a few other wordings but none have really improved > clarity. I'd be more in favour of adding a short explanation to > readattr in the manual (or just removing this check in readattr > so it just displays the values returned from the drive and > doesn't bother with any comparison..) > > smartstatus: > > No SMART threshold exceeded > SMART threshold exceeded! > > readattr: > > One or more threshold values exceeded!
Páginas Amarillas - Su Publicidad Anual
Buenas tardes, tech@openbsd.org ?Azn no ingresa al Directorio de Paginas Amarillas Internet? ?Quiere vender mas? ?Ganarle a la competencia? Miles de visitantes consultan el Directorio a diario. NO es Telefsnica! Es el mayor portal Dinamico de Argentina. En caso de no visualizar el newsletter por favor escrmbanos a: info.amarillasinter...@yahoo.com, lo mismo si se encuentra en otro pams. Ahora en su ciudad..! Publique hoy su anuncio anual y llegue a miles de clientes en su zona! El Directorio revolucionario de publicidad y anuncios de Argentina que crece dma a dma. Ingrese hoy y posicisnese primero en todas las bzsquedas! Que no le ganen..! Sm! Ahora puede anunciar su comercio, profesisn, rubro o actividad en el sitio mas revolucionario del negocio de la publicidad y de gran ixito en latinoamirica! Amarillas Internet no sslo apunta a los grandes anunciantes corporativos, sino tambiin a pequeqas y medianas empresas, actividades profesionales, artes, oficios y todo tipo de individuos que deseen vender mas. En cada ciudad y en cada barrio hay clientes que desean publicar sus anuncios en Internet, nuestro segmento es uno de los mejores sectores de la economma, el de la publicidad. Puede capitalizar la ventaja de los pioneros, publique antes que su competencia y quede mejor posicionado en los listados de bzsquedas. Amarillas Internet ofrece avisos publicitarios con tecnologma de punta desde $10.- pesos al mes. Con motores de bzsquedas propios compatibles con Google. Amarillas Internet es un mercado sin lmmites, crece dma a dma en mas de 24 pamses con el fuerte respaldo de la Camara Internacional de Comercio. - --- Caractermsticas del Aviso Anual Destacado: (Promocisn valida hasta 30/4/10) Logo de la compaqma o imagen del producto. Nombre del negocio o Producto. Descripcisn de negocio, producto o servicio. Domicilio completo, telifonos, fax. Enlace directo a la pagina web. Contacto directo al email. Posicionamiento destacado en bzsquedas. Posibilidad de impresisn. Posibilidad de envmo a terceros. Mapa geografico del negocio. Click aqum para ver ejemplo. Sslo $149 por 1 aqo s $249 por 2 aqos. Precio Regular anual $269.- - --- Caractermsticas del Aviso Anual Premium Banner (Promocisn valida hasta 30/4/10) Incluye lo mismo del Aviso Destacado + banner de imagenes rotativo, prioridad de aparicisn en listado de bzsquedas, galerma de 40 fotos. Ideal para mostrar productos, catalogos, etc. Gran herramienta de venta. Click aqum para ver ejemplo. Sslo $599 por 1 aqo s $849 por 2 aqos. Precio Regular anual $639.- - --- Todos los avisos pueden ser editados cuantas veces se requiera por el propio usuario. Anuncie hoy, estara ante los ojos de miles de usuarios haciendo crecer su negocio cada dma mas. Solicite su anuncio y paguelo cuando lo vea online! Puede realizar su pago online de manera muy sencilla a travis de transferencias, tarjetas de cridito, o a travis de Pago Facil, Rapipago, Bapro Pagos, Cobro Express, etc. Solicite su aviso aqum o envme un email con los datos de su anuncio a info.amarillasinter...@yahoo.com, a la brevedad uno de nuestros agentes lo contactara. - --- ?Por qui publicar en Amarillas Internet? 1. 95% de los consumidores ya conocen el concepto de Paginas Amarillas. 2. Consiga nuevos clientes por Internet, azn sin tener pagina web! 3. Internet simplifica la bzsqueda, brindando informaciones en todo momento y en cualquier lugar. 4. 71% de los visitantes contactan al proveedor que estan buscando y el 62% realiza finalmente la compra. 5.Llegue a mas clientes por palabras claves en las bzsquedas. 6. Disponible para uso en celulares WAP (amawap.com) 7. Sistema de rankeo y prioridad de aparicisn por antig|edad y/o inversisn publicitaria. 8. Presencia constante: 24 horas, los 365 dias del aqo. No pierda oportunidades...ganele a su competencia hoy mismo. Sus clientes esperan.! Solicite su aviso aqum o envme un email con los datos de su anuncio a info.amarillasinter...@yahoo.com, a la brevedad uno de nuestros agentes lo contactara. Lo saluda afectuosamente, El equipo de Amarillas Internet. Distribuidores exclusivos en Argentina. info.amarillasinter...@yahoo.com Tel. 1.323-924-7376 www.amarillasinternet.com CICCOM Camara Internacional de Comercio del Mercosur. Si Usted ha recibido este correo y lo considera SPAM, por favor CLIQUE AQUI para que nuestro Departamento Legal tome las acciones necesarias. Gracias.
Re: Difference of threshold check: atactl smartstatus vs atactl readattr
On 2010/04/03 07:51, Nicholas Marriott wrote: > Maybe the message in one or other of the cases should be different? The message in readattr is slightly different as it talks about values; I've tried a few other wordings but none have really improved clarity. I'd be more in favour of adding a short explanation to readattr in the manual (or just removing this check in readattr so it just displays the values returned from the drive and doesn't bother with any comparison..) smartstatus: No SMART threshold exceeded SMART threshold exceeded! readattr: One or more threshold values exceeded!
{Spam?} Re: [patch] less: filename globbing/expansion
Nicholas Marriott wrote: > On Sat, Apr 03, 2010 at 03:37:46PM +1030, Matthew Haub wrote: > > We no longer track upstream less(1). The last sync was 7 > > years ago. > > Yes, but is that for a reason or just because nobody has > updated it? Because everybody uses w3m to replace less and lynx nowadays. # Han