Suggestion for .bashrc

2021-12-31 Thread Kevin O'Gorman
it does not clutter up the dotfile space of folks who don't use it. *Kevin O'Gorman (he/him/his)*

Re: [DOC] Incomplete explanation about the regex =~ operator

2019-01-16 Thread kevin
Le 17/01/2019 à 07:53, kevin a écrit : Le 12/01/2019 à 23:27, Chet Ramey a écrit : On 1/12/19 1:14 AM, kevin wrote: Moreover, the explanation in the Bash FAQ is unclear; it lacks examples to know when "an interference" occurred. What is "an interference"? Look at the

Re: [DOC] Incomplete explanation about the regex =~ operator

2019-01-16 Thread kevin
Le 12/01/2019 à 23:27, Chet Ramey a écrit : On 1/12/19 1:14 AM, kevin wrote: Moreover, the explanation in the Bash FAQ is unclear; it lacks examples to know when "an interference" occurred. What is "an interference"? Look at the following answer to get an overview

Re: simple function causes BASH to exit when -e in effect

2017-12-24 Thread Kevin Layer
Bob, 'set -e' is a double-edged sword, for sure, but I'm not sure it creates more problems than it solves. Hidden non-zero exits have wasted far more time, for me, than this little exercise has. On Sun, Dec 24, 2017 at 11:45 AM, Bob Proulx wrote: > Kevin Layer wrote: >

Re: simple function causes BASH to exit when -e in effect

2017-12-22 Thread Kevin Layer
e: > > > On Fri, Dec 22, 2017 at 1:39 PM, Kevin Layer wrote: > >> The bug happens to me on >> GNU bash, version 4.1.2(2)-release (x86_64-redhat-linux-gnu) >> and >> GNU bash, version 4.4.12(1)-release (x86_64-apple-darwin16.4.0) >> >> The script is

simple function causes BASH to exit when -e in effect

2017-12-22 Thread Kevin Layer
The bug happens to me on GNU bash, version 4.1.2(2)-release (x86_64-redhat-linux-gnu) and GNU bash, version 4.4.12(1)-release (x86_64-apple-darwin16.4.0) The script is attached, but the function in question is this: function debug1 { [ "$debug" ] && echo "$(date "+%Y-%m-%d %H:%M:%S"): $@" }

Re: Execution continuing after SIGINT received

2017-08-05 Thread Kevin Brodsky
, POSIX is what it is and we won't change it anyway ;-) For now, there's no other way to communicate with the shell, so that's fair enough. > POSIX even added a raise(3) call to make this easier. (Although I > still do things the old way.) > > man 3 raise That's a good point, it's arguably more self-explanatory than kill(getpid(), ...). Kevin

Re: Execution continuing after SIGINT received

2017-08-05 Thread Kevin Brodsky
On 05/08/2017 03:22, Bob Proulx wrote: > Kevin Brodsky wrote: >> $ bash -c '(trap "echo INT; exit 1" INT; sleep 60s); echo after' >> ^CINT >> after >> $ > This is a good example of a bad example case. You shouldn't "exit 1" > or

Re: Execution continuing after SIGINT received

2017-08-05 Thread Kevin Brodsky
On 05/08/2017 15:53, Chet Ramey wrote: > On 8/4/17 7:52 PM, Kevin Brodsky wrote: > >> When Bash receives SIGINT while executing a command, it normally waits >> for the command to complete, and then aborts execution. However, it >> looks like somehow, this is not the cas

Execution continuing after SIGINT received

2017-08-04 Thread Kevin Brodsky
fter' ^CTraceback (most recent call last): File "", line 1, in KeyboardInterrupt after $ dash, mksh, zsh don't exhibit this behaviour: in all cases, execution is aborted. Bash seems to have always behaved like that, at least since 4.0. Kevin

Re: Unexpected word splitting on $* when IFS is unset

2017-06-21 Thread Kevin Brodsky
On 21/06/2017 20:29, Chet Ramey wrote: > On 6/21/17 2:43 PM, Kevin Brodsky wrote: > >> That is also my reading of POSIX (and that's more or less what Bash's >> manpage says as well), but it doesn't seem to be the case (even in <=4.2): > That's a rel

Re: Unexpected word splitting on $* when IFS is unset

2017-06-21 Thread Kevin Brodsky
On 21/06/2017 14:54, Chet Ramey wrote: > On 6/20/17 1:33 AM, Eduardo A. Bustamante López wrote: >> On Tue, Jun 20, 2017 at 01:13:07AM +0100, Kevin Brodsky wrote: >> [...] >>> When IFS is unset, unquoted $* undergoes word splitting as if IFS=' ', >>> and n

Re: Unexpected word splitting on $* when IFS is unset

2017-06-20 Thread Kevin Brodsky
On 20/06/2017 06:33, Eduardo A. Bustamante López wrote: > On Tue, Jun 20, 2017 at 01:13:07AM +0100, Kevin Brodsky wrote: > [...] >> When IFS is unset, unquoted $* undergoes word splitting as if IFS=' ', >> and not the expected IFS=$' \t\n'. All the other unqu

Unexpected word splitting on $* when IFS is unset

2017-06-19 Thread Kevin Brodsky
s commit is related to the handling of $* when IFS is unset, but my knowledge of Bash's sources is too limited to tell what's wrong with it :-) Kevin

Follow-up to Non-expanding here-documents inside command substitution

2017-02-23 Thread Kevin Grigorenko
Regarding the response: > [POSIX] is not necessarily ambiguous, but it does require close > reading. Can you please explain how it was concluded that it's a bug based on the specification? Thank you -- Kevin G

Error building bash-3.2.52 downloaded/patched from ftp.gnu.org.

2014-09-26 Thread Kevin Broadey
; dispose_words (list); I¹ve checked parse.y and the call to expand_prompt_string is correct, so it looks like you¹ve distributed this version without running bison first. My machine has bison installed so I¹m not sure why ³make² didn¹t invoke it. Best regards Kevin Broadey

add vi mode refresh command of inputrc to documentation

2012-07-16 Thread Kevin Low
CTRL-l, (el), the redraw screen command in VI does not cause bash to re-read its inputrc file either. Of course I would be interested to find out what the command is, but more importantly, I think this information should be provided along with the emacs information. Thanks, Kevin

Helpful app for your dream wedding planning

2012-05-29 Thread kevin
The wedding planning can be done easily using like wedding planner, wedding app etc. It depends upon the wedding planning people to choose the path, according to their convenient, Budget allocations and their requirement. The best option to plan the wedding is doing by wedding couple itself. They c

bash crashes with named pipes

2010-12-09 Thread Kevin
Maybe I'm doing something wrong, but the following will make bash crash. terminal 2: $ mkfifo test $ while true; do echo foo && sleep 1; done > test terminal 1: $

Re: variable assignments and parameter expansion in a single command

2007-05-18 Thread Kevin F. Quinn
Following a discussion we had earlier this year regarding the order of evaluation of variables and variable assignments: $ A="moo" B="$A more" env |grep ^B B=moo more (rather than showing just 'B= more') the dash maintainer has highlighted the following: $ bash -c 'K=dvb0.net0 A=${K#dvb} eva

Re: variable assignments and parameter expansion in a single command

2007-03-26 Thread Kevin F. Quinn
On Sun, 25 Mar 2007 12:26:32 +0200 "Kevin F. Quinn" <[EMAIL PROTECTED]> wrote: > FWIW I tried also /usr/xpg4/bin/sh (with the Belenix livecd, SunOS > 5.11) and that shows the same as sh/ash/dash/bb. FI just tried on SunOS 5.8 (sparc) - a proper Sun installation - and /usr/x

Re: variable assignments and parameter expansion in a single command

2007-03-25 Thread Kevin F. Quinn
On Sat, 24 Mar 2007 19:32:35 -0400 Chet Ramey <[EMAIL PROTECTED]> wrote: > Kevin F. Quinn wrote: > > my interpretation of > > "variable assignment" is the `A=' part of the statement; i.e. that > > the rhs of the assignment is expanded. > > It

Re: variable assignments and parameter expansion in a single command

2007-03-24 Thread Kevin F. Quinn
[AB]= A=one B=one two $ cat show_ab #!/bin/bash echo A: $A echo B: $B $ A=one B="$A two" ./show_ab A: one B: two $ A=one B="$A two" ./show_ab | more A: one B: one two is a little bizarre. Again; the other shells never yield "one two". -- Kevin F. Quinn signature.asc Description: PGP signature ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash

Re: Bash-3.2 Official Patch 10

2007-03-11 Thread Kevin F. Quinn
On Fri, 09 Mar 2007 11:39:18 -0500 Chet Ramey <[EMAIL PROTECTED]> wrote: > Kevin F. Quinn wrote: > > On Mon, 5 Mar 2007 17:49:47 -0500 > > Chet Ramey <[EMAIL PROTECTED]> wrote: > > > >> Bash-Release: 3.2 > >> Patch-ID: bash32-010 > >

Re: Bash-3.2 Official Patch 10

2007-03-06 Thread Kevin F. Quinn
grep, compare for example: 3.1: $ v="Alphabet" $ [[ ${v} =~ "^Alpha" ]] && echo matches matches $ echo ${v} | grep "^Alpha" Alphabet 3.2.10 $ v="Alphabet" $ [[ ${v} =~ "^Alpha" ]] && echo matches $ echo ${v} | grep "^Alpha" Alph

Re: while read subcommand problem

2007-03-02 Thread Kevin F. Quinn
On Fri, 2 Mar 2007 03:04:14 -0800 (PST) rleeden <[EMAIL PROTECTED]> wrote: > > Hi, > > I struggled recently with a 'while read' type of loop in bash, where > after the loop had finished the variables used inside the loop are > not visible any more. I soon found the problem as explained in > sect

Re: Conditional Regexp matching problem in 3.2

2007-01-23 Thread Kevin F. Quinn
hrough 009 patches applied (we have a few other local patches for various reasons, but I've built without them to be sure they're not affecting this). What's the (7) in the release number - does that refer to difference I might be missing? -- Kevin

Re: Conditional Regexp matching problem in 3.2

2007-01-23 Thread Kevin F. Quinn
== alphabet ]] && echo yes yes $ [[ $V == "alphabet" ]] && echo yes yes $ [[ $V == 'alphabet' ]] && echo yes yes $ [[ $V =~ alphabet ]] && echo yes yes $ [[ $V =~ "alphabet" ]] && echo yes $ [[ $V =~ 'alphabet' ]] &&a

Re: Conditional Regexp matching problem in 3.2

2007-01-19 Thread Kevin F. Quinn
zilla.redhat.com/bugzilla/show_bug.cgi?id=220087) At least to confirm/deny that it may be a real problem? Thanks, -- Kevin F. Quinn signature.asc Description: PGP signature ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash

Quoting near =~ is inconsistent

2007-01-14 Thread Kevin F. Quinn
&& echo matches $ [[ ${v} =~ Alphabet ]] && echo matches matches $ v="one two buckle my shoe" $ [[ ${v} =~ "one two" ]] && echo matches $ [[ ${v} =~ one two ]] && echo matches $ [[ ${v} =~ one\ two ]] && echo matches matches -- Kevin F. Quinn signature.asc Description: PGP signature ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash

patch submission: "read -i" feature

2006-07-19 Thread Kevin Pulo
ed_completion_function = (rl_completion_func_t *)NULL; + if (i) +{ + old_startup_hook = rl_startup_hook; + rl_startup_hook = set_initial_text; + initial_text = i; +} ret = readline (p); rl_attempted_completion_function = old_attempted_completion_function; if (ret == 0) -- .