Re: Bash git repository on savannah

2011-11-24 Thread Mike Frysinger
On Wednesday 23 November 2011 23:23:43 Chet Ramey wrote:
 I spent a little while messing around with git over the past couple of
 days, and ended up updating the bash git repository on savannah
 (http://git.savannah.gnu.org/cgit/bash.git to browse the sources).
 Bash-4.2 patch 20 is the head of the tree, and there's a branch
 containing the `direxpand' patches that I've posted here.  Each
 bash-4.2 patch is in there as a separate commit.

i thought you were maintaining a private CVS somewhere ?  if so, would it be 
possible to create a git tree from that ?  if you want someone else to take 
care of the details, i can help ... i've converted a bunch of projects in the 
past over to git from CVS/SVN.
-mike


signature.asc
Description: This is a digitally signed message part.


Re: Execution strange when get lines of the console in script with command substitution and the rediretion of the stderr.

2011-11-24 Thread Jonathan Nieder
(+cc: help-bash, -cc: bug-bash, bcc: bug-bash)
Hi,

QGZ wrote:

 $ cat abc.sh
 #!/bin/bash
 tput lines
 echo $(tput lines)
[...]
 $ ./abc.sh 2/dev/null

 We will get :
 50
 24

This is an ncurses question, not a bash question, so let's move to
the help-bash list.

The tput(1) manual does not describe how it gets access to the
terminal to read the number of lines.  Fortunately, from your example
we can deduce that tput checks if the standard output (file
descriptor 1) and standard error (file descriptor 2) streams are
terminals and communicates with the terminal using whichever one is a
tty.  Something like

echo $(tput lines 2/dev/tty)

might get your script working again.  A patch to the manual page from
the ncurses-bin package to clarify this would presumably be welcome.

 I don't know why it is.  What is amazing is the number 24. 

That's the traditional height of an 80x24 terminal.

Hope that helps.

Regards,
Jonathan



Re: Bash git repository on savannah

2011-11-24 Thread Joachim Schmitz

Chet Ramey wrote:

I spent a little while messing around with git over the past couple of
days, and ended up updating the bash git repository on savannah
(http://git.savannah.gnu.org/cgit/bash.git to browse the sources).
Bash-4.2 patch 20 is the head of the tree, and there's a branch
containing the `direxpand' patches that I've posted here.  Each
bash-4.2 patch is in there as a separate commit.

All the released sources back to bash-1.14.7 are there, building on
the work Jari Aalto started a couple of years ago.

Chet


Does that also mean than these patches are no longer available from 
ftp://ftp.cwru.edu/pub/bash/bash-4.2-patches/? The newer ones are not, 
although they are on ftp://ftp.gnu.org/gnu/bash/bash-4.2-patches/.


Bye, Jojo