Re: Feature Request re: syslog and bashhist

2015-08-12 Thread Mike Frysinger
On 10 Aug 2015 16:19, Chet Ramey wrote: > On 8/9/15 1:37 PM, aixtools wrote: > > Via google I came across the define named > > > > config-top.h:/* #define SYSLOG_HISTORY */ > > > > Changing it (manually) to > > config-top.h:#define SYSLOG_HISTORY > > > > Adds syslog statements such as: > > Aug

Re: shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied

2015-08-12 Thread vhdmatuk
chupilirola

Re: -e does not take effects in subshell

2015-08-12 Thread isabella parakiss
On 8/13/15, Eric Blake wrote: > Like it or not, it is the historical behavior standardized by POSIX. It > is NOT intuitive, and our advice is "DON'T USE set -e - IT WON'T DO WHAT > YOU WANT". We can't change the behavior, because it would break scripts > that rely on the POSIX-specified behavior.

Re: -e does not take effects in subshell

2015-08-12 Thread Eric Blake
On 08/12/2015 09:54 PM, PRC wrote: > 1. If the function is complicated and contains lots of commands, it > would be more troublesome appending && to every command rather > than simply using one single "set -e" at the front. > 2. It is not > reasonable that suppression of '-e' is applied as wel

RE: -e does not take effects in subshell

2015-08-12 Thread PRC
1. If the function is complicated and contains lots of commands, it would be more troublesome appending && to every command rather than simply using one single "set -e" at the front. 2. It is not reasonable that suppression of '-e' is applied as well inside the function. My intention is if my

problems with traps

2015-08-12 Thread isabella parakiss
This segfaults when it receives a SIGUSR1: #!/bin/bash trap ': $(:) < <(:)' USR1 while :; do sleep 1; done I also received a bunch of scary errors like these: *** Error in `/bin/bash': munmap_chunk(): invalid pointer: 0x02680f80 *** *** Error in `/bin/bash': corrupted double-linked list:

Re: segfault when indirectly expanding negative numbers

2015-08-12 Thread Chet Ramey
On 8/12/15 3:52 PM, isabella parakiss wrote: > Bash segfaults when trying to do this: x=-3; echo ${!x} > Here's the backtrace from gdb: https://gist.github.com/306f16a358527b267a1e > It looks like the problem is the savestring macro when ind is negative. Thanks for the report. This will be fixed

segfault when indirectly expanding negative numbers

2015-08-12 Thread isabella parakiss
Bash segfaults when trying to do this: x=-3; echo ${!x} Here's the backtrace from gdb: https://gist.github.com/306f16a358527b267a1e It looks like the problem is the savestring macro when ind is negative. --- xoxo iza

Re: Feature Request re: syslog and bashhist

2015-08-12 Thread aixtools
On 2015-08-12 3:19 PM, Chet Ramey wrote: On 8/12/15 8:09 AM, Aharon Robbins wrote: In article, aixtools wrote: In short, having it included in ./configure simply give it much more visibility - and perhaps adoption. Personally, I think that having bash send executed commands to syslog is an in

Re: Feature Request re: syslog and bashhist

2015-08-12 Thread Chet Ramey
On 8/12/15 8:09 AM, Aharon Robbins wrote: > In article , > aixtools wrote: >> In short, having it included in ./configure simply give it much more >> visibility - and perhaps adoption. > > Personally, I think that having bash send executed commands to syslog > is an invasion of privacy; I'm sur

Re: Feature Request re: syslog and bashhist

2015-08-12 Thread Chet Ramey
On 8/12/15 6:31 AM, aixtools wrote: > In short, having it included in ./configure simply give it much more > visibility - and perhaps adoption. Don't assume that wide adoption of this feature is a goal. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa,

Re: Bash 4.3.30 on AIX 6.1 filename completion

2015-08-12 Thread Chet Ramey
On 8/12/15 6:38 AM, aixtools wrote: > /* > * define _LARGE_FILES needs to be first so that all the include files know > that > */ > #ifdef _AIX > #define _LARGE_FILES > #endif That define is in config.h and should be set by the AC_SYS_LARGEFILE autoconf macro. If it's not working on AIX I woul

Re: Feature Request re: syslog and bashhist

2015-08-12 Thread Greg Wooledge
On Wed, Aug 12, 2015 at 08:00:24AM -0500, John McKown wrote: > Case 2: I'm running bash on my employer's system???. Do I really have an > expectation of privacy on my employer's system? Why would I? In some countries, yes, there is such an expectation. Logging your employees' activities may or ma

Re: Feature Request re: syslog and bashhist

2015-08-12 Thread John McKown
On Wed, Aug 12, 2015 at 7:09 AM, Aharon Robbins wrote: > In article , > aixtools wrote: > >In short, having it included in ./configure simply give it much more > >visibility - and perhaps adoption. > > Personally, I think that having bash send executed commands to syslog > is an invasion of pri

Re: Feature Request re: syslog and bashhist

2015-08-12 Thread Aharon Robbins
In article , aixtools wrote: >In short, having it included in ./configure simply give it much more >visibility - and perhaps adoption. Personally, I think that having bash send executed commands to syslog is an invasion of privacy; I'm surprised such a feature is even there at all... My two ce

Re: Bash 4.3.30 on AIX 6.1 filename completion

2015-08-12 Thread aixtools
On 2015-08-12 12:38 PM, aixtools wrote: On 2015-08-03 3:40 PM, Chet Ramey wrote: On 8/2/15 8:50 PM, Steve Dahl wrote: If on AIX 6.1, I mount an NFS volume exported from CentOS 6.7, Bash (4.3.30) is unable to do tab completion within that file system. If (for example) I search for files that I

Re: Bash 4.3.30 on AIX 6.1 filename completion

2015-08-12 Thread aixtools
On 2015-08-03 3:40 PM, Chet Ramey wrote: On 8/2/15 8:50 PM, Steve Dahl wrote: If on AIX 6.1, I mount an NFS volume exported from CentOS 6.7, Bash (4.3.30) is unable to do tab completion within that file system. If (for example) I search for files that I know exist, such as: ls -l /path/to/

Re: Feature Request re: syslog and bashhist

2015-08-12 Thread aixtools
On 2015-08-10 10:19 PM, Chet Ramey wrote: On 8/9/15 1:37 PM, aixtools wrote: Hi, Via google I came across the define named config-top.h:/* #define SYSLOG_HISTORY */ Changing it (manually) to config-top.h:#define SYSLOG_HISTORY Adds syslog statements such as: Aug 9 16:52:55 x064 user:info sy