Re: [BUG] ERR trap triggered twice when using 'command'

2018-04-02 Thread Nick Chambers
bug tool, I’m not sure if this is actually a bug. If you consider the following: NickChambers-iMac:~ Nick$ type command command is a shell builtin This means that when you execute `command false`, false is executed in a child subshell and command is executed in the current shell, and both retu

Re: [BUG] ERR trap triggered twice when using 'command'

2018-04-02 Thread Nick Chambers
On 4/1/18, 5:54 AM, "bug-bash on behalf of Martijn Dekker" wrote: $ bash -c 'trap "echo WHOA" ERR; command false' WHOA WHOA Expected output: just one WHOA (as on *ksh, zsh) Thanks, - M. Please use the bashbug tool to submit the bug, so those that look

Re: tilde character not interpreted in variable set

2018-03-02 Thread Nick Chambers
On 3/2/18, 9:03 AM, "bug-bash on behalf of Koncz, Istvan (Extern)" wrote: Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='l

Re: Custom word completion, word splitting, bad behavior

2018-02-12 Thread Nick Patavalis
On Mon, Feb 12, 2018 at 6:33 PM, Chet Ramey wrote: > > Because, as I said in my original reply, readline understands how to > complete inside quoted strings. If point is after the `b', for instance, > and you hit TAB, readline scans back to the open quote and passes > "p/foo/a b" to the completion

Re: Custom word completion, word splitting, bad behavior

2018-02-07 Thread Nick Patavalis
On Wed, Feb 7, 2018 at 11:12 PM, Chet Ramey wrote: > > You might try, as an intermediate step, removing `'' and `"' from > $COMP_WORDBREAKS and seeing how that works. I would be interested if it > affected readline's ability to complete within quoted strings. > I have tried this, and it works ok

Re: Custom word completion, word splitting, bad behavior

2018-02-07 Thread Nick Patavalis
On Wed, Feb 7, 2018 at 10:56 PM, Chet Ramey wrote: > On 2/6/18 3:52 PM, Nick Patavalis wrote: >> >> In any case, splitting it like: >> >> foo | --bar | =" | baz" aa bb >> >> (the last part a single word) does not look reasonable to me (even if &

Re: Custom word completion, word splitting, bad behavior

2018-02-06 Thread Nick Patavalis
Hi, Thank you for your reply. I'm not sure I understand everything, other than basically... "that's how readline does it". I don't suggest there's a bug in readline, but I don't understand, for example, why foo --bar "baz" aa bb is ok to be split like: foo | --bar | "baz" | aa | bb while

Custom word completion, word splitting, bad behavior

2018-02-05 Thread Nick Patavalis
I witnessed the following in the word-splitting results passed to custom completion functions. The word splitting performed goes haywire when it sees the =' (equal, quote) or =" (equal double-quote) character sequences. From this point on, practically no word-splitting is performed. As these sequen

[PATCH] typo in wait.def doc

2017-02-23 Thread Nick Pongratz
ts for all processes +status is zero. If ID is a job specification, waits for all processes in that job's pipeline. If the -n option is supplied, waits for the next job to terminate and --- Nick Pongratz Systems Engineer Singlewire Software

Re: ssh does not source /etc/bash.bashrc, but manual execution of /bin/bash does it under specific circumstances

2016-12-20 Thread Nick
Hello Chet and Eduardo, thank you very much for your replies. Everything is crystal clear now. Sorry for the 'wrong alarm' (: Best, Nick On 20/12/2016 20:24, Chet Ramey wrote: On 12/20/16 11:11 AM, Nick wrote: i came up with a weird behavior of ssh+bash on my Debia

ssh does not source /etc/bash.bashrc, but manual execution of /bin/bash does it under specific circumstances

2016-12-20 Thread Nick
cuted with different flags while being called from ssh versus a user), but as far as i understand, the same things should be (or not) sourced. Best, Nick Please find /etc/bash.bashrc, /etc/profile and my home directory under this link: www.katastrofi.eu

Re: How to lock a terminal

2016-02-16 Thread Nick Warne
e extender. Sorry for the noise. Nick On 16/02/16 10:19, Bob Proulx wrote: Nick Warne wrote: I was in a SSH session, and checking something inadvertently issued: > nano /var/log/messages | grep a (I was searching for something else than an 'a', but the above example shows the iss

How to lock a terminal

2016-02-15 Thread Nick Warne
from another terminal to get out of it. I don't know if this behaviour is expected or me being stupid, or something else going on. Regards, Nick -- Gosh that takes me back... or is it forward? That's the trouble with time travel, you never can tell." -- Doctor Who "Androids of Tara"

Consequences of shell errors

2015-06-17 Thread Nick Stoughton
be missing something. Can someone explain why the first 2 examples do not exit on the error in the expansion? *__* *Nick Stoughton* *Aether Things Inc * *San Francisco* +1 (510) 388 1413

Re: dead link

2015-03-03 Thread Nick Stoughton
The problem is that the link under [promptvars] points to http://www.gnu.org/software/bash/manual/html_node/Controlling-the-Prompt.html#Controlling-the-Prompt, and not to the link mentioned above. *__* *Nick Stoughton* *Aether Things Inc * *San Francisco* +1 (510

Re: Bash security issue

2014-09-26 Thread Nick Bowler
On 2014-09-26 08:51 -0600, Eric Blake wrote: > On 09/26/2014 08:45 AM, Nick Bowler wrote: > > On 2014-09-25 15:08 -0700, Linda Walsh wrote: > >> Eric Blake wrote: > >>> Where I'm coming from is that in portable shell programming, you _can't_ > >>&g

Re: Bash security issue

2014-09-26 Thread Nick Bowler
- standard assignments like this: foo=$1; export foo are not portable to bash, and may fail to work correctly depending on the user's input. Cheers, -- Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/)

Re: Making "cmd< <(...)" useful (reliable)

2014-06-30 Thread Gotmy Nick
Hello, I can not help too much on the "bug" side, but I would like to give a tip regarding the situation you describe. Often I've the same caveats about how my code will be used in a future without my control... If you know for sure, what makes the code unreliable, in this example the /proc subs

Re: documentation... readonly help is not accurate

2013-03-04 Thread Gotmy Nick
On 4 March 2013 14:51, Chet Ramey wrote: > > This isn't accurate. Run the following script: > > foo() > { > echo foo > } > bar=quux > > readonly foo > readonly bar > > readonly > > In addition to the built-in bash readonly variables, both bar and foo will > be listed. Maybe I'm wrong, bu

documentation... readonly help is not accurate

2013-03-03 Thread Gotmy Nick
Hello, Sorry if this has been reported earlier, but I can't find nothing related in the archives. $ help readonly | grep -- '-p' readonly: readonly [-aAf] [name[=value] ...] or readonly -p -pdisplay a list of all readonly variables and functions $ echo $B

Re: Bash segmentation fault on startup/ssh

2012-03-31 Thread Nick Gnazzo
Hi Chet, I was able to solve the problem; I had accidentally set my bashrc file to source itself upon startup, which caused the segmentation fault. Changing the file fixed the problem as far as I can tell. Thanks for following up. Thanks, Nick On Mar 31, 2012, at 8:51 PM, Chet Ramey wrote

Re: bash, echo or openssl bug?

2012-01-03 Thread nick humphrey
thanks eric and mike for your quick reply and suggestions =) 2012/1/3 Eric Blake > On 01/03/2012 06:48 AM, nick humphrey wrote: > > Description: > > i dont know if the bug is a bash bug or openssl or echo, but > when i > > echo a string and pipe it to openssl,

bash, echo or openssl bug?

2012-01-03 Thread nick humphrey
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DC$ uname output: Linux buildserver 2.6.27-11-server #1 SMP

Bash crashes if you try to mapfile into an associative array

2009-10-16 Thread Nick Hobson
From: Nick Hobson To: bug-bash@gnu.org Subject: Bash crashes if you try to mapfile into an associative array Configuration Information [Automatically generated, do not change]: Machine: i686 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686&

Re: hardwired DEBUGGER_START_FILE points to wrong location

2006-09-07 Thread Nick Brown
Nick Brown wrote: > Currently if the environmental variable is not set then > DEBUGGER_START_FILE defaults to this; > > configure.in: DEBUGGER_START_FILE= > ${ac_default_prefix}/lib/bashdb/bashdb-main.inc > > However looking at the bashdb package Makefiles I note that >

hardwired DEBUGGER_START_FILE points to wrong location

2006-09-06 Thread Nick Brown
share/bashdb/bashdb-main.inc" but I'm sure someone that understands autoconf/automake better can correct this. Thanks, Nick ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash

mac boot error

2006-08-17 Thread nick genova
my bug is not as much with bash as it is with apple. i was using my mac, until a point where it said please restart, i restarted and it booted back into bash, and has been doing so ever since. i dont know how to solve this, maybe you guys have a solution? __

mac boot error

2006-08-17 Thread nick genova
my bug is not as much with bash as it is with apple. i was using my mac, until a point where it said please restart, i restarted and it booted back into bash, and has been doing so ever since. i dont know how to solve this, maybe you guys have a solution? __

Script ends prematurely when fed into bash's stdin

2005-09-19 Thread nick
Configuration Information [Automatically generated, do not change]: Machine: i686 OS: linux-gnu Compiler: i686-pc-linux-gnu-gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/loc

Bug in [ error reporting

2005-07-31 Thread nick
r-line finished sourcing B.sh [EMAIL PROTECTED]:~> See that the error message says that the error occured on line 3 of A.sh, when in fact the error occured on line 3 of B.sh -Nick Hoffman [EMAIL PROTECTED] ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash

Volk wird nur zum zahlen gebraucht!

2005-05-15 Thread nick
Lese selbst: http://www.my-rocknord.de/viewtopic.php?t=1018&sid=3ce6385b1dee88cb02447f566a2da68d .. damit Sie nicht als der erste Kanzler in die deutsche Geschichte eingehen, der Untertanen verboten hat, aus ihren Fenstern auf die Strasse zu gucken - selbst Nazis und Stalinisten haben niemals ei