Re: pipe buffering

2005-11-08 Thread Chet Ramey
Frank Kujawski wrote:
>   I upgreaded versions of Linux, and bash, and I am finding that the
> pipe, |, is buffering differently.  Before I could go a fe pipes before
> I get a buffered output, now it seems that it buffers at a single pipe.
>   I have looked for settings in bash, as it apears to be bash related
> and not command related.  The specific command is
> tail httpd-*.logs | cut -c-80
>   While I presume this is an internal behavor to the CLI, I would liek
> to be able to turn it off.

This isn't under bash's control.


-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Live Strong.
Chet Ramey, ITS, CWRU[EMAIL PROTECTED]http://cnswww.cns.cwru.edu/~chet/


___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash


Re: $LINENO can't be modified in bash 3.0, while this can be done in bash 2.05b

2005-11-08 Thread Chet Ramey
Ahmed Darwish wrote:
> I've noticed that the $LINENO can't be modified in bash 3.0. I made a
> script (bash debugger) which modify LINENO to a specific value before
> using it, it worked in bash 2.05b. but in bash 3.0, even if i've
> changed it's value, it counts from "one" like nothing happened

Bash-3.0 is much more rigorous about $LINENO accurately reflecting the
line number in the script.  It's not a bug.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Live Strong.
Chet Ramey, ITS, CWRU[EMAIL PROTECTED]http://cnswww.cns.cwru.edu/~chet/


___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash


set -x makes "r=1 echo" and "r=1; echo" look the same

2005-11-08 Thread Dan Jacobson
Hurmf, I don't like how the former looks like it was two separate
commands according to set -x:
$ set -x
$ r=1 echo
+ r=1
+ echo

$ r=1; echo
+ r=1
+ echo

They shouldn't give exactly the same, no?


___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash