Re: SIGINT in a sourced script does not clean up some special variables

2015-12-19 Thread Chet Ramey
On 11/10/15 3:36 AM, Grisha Levit wrote: > Apologies if I'm missing something about the expected SIGINT behavior. I've > read through the previous SIGINT discussions but this still seems unexpected: > > $ declare -p BASH_ARGC BASH_ARGV BASH_SOURCE BASH_LINENO > declare -a BASH_ARGC=() > declare

Re: count

2015-12-19 Thread John McKown
On Fri, Dec 18, 2015 at 7:05 PM, Krem wrote: > Hi all, > > I have one folder and this folder contains several folders. Each sub > folders > contains 5 or 6 files. So i want count the number of rows within each > file and produce an output. > > Assume the main folder called A and it has th

Re: [patch] new special variable: test argument

2015-12-19 Thread Piotr Grzybowski
thanks for the answer Stephane; dont get me wrong, I do understand that using another variable removes the need for some special variables (do you need $REPLY if you can always use "read v" and be happy with it?). Dont you think it makes sense what Konsolebox has written? sincerely, pg El 19/12/20

Re: [patch] new special variable: test argument

2015-12-19 Thread Piotr Grzybowski
El 19/12/2015 03:46, "Stephane Chazelas" escribió: > > 2015-12-19 00:58:41 +0100, Piotr Grzybowski: > > [..] > > Without $^ it begins to look terrible. > > Using a variable is the most obvious thing to do. not always practical. > > Also, what if "new_index" was a function which does call "[ -f"