Link failure: multiple definition of getenv

2012-03-11 Thread Matthew Farkas-Dyck
Hello. I am trying to build bash against uClibc. Build fails thus: $ make ... x86_64-linux-gcc -L./builtins -L./lib/readline -L./lib/readline -L./lib/glob -L./lib/tilde -L./lib/malloc -L./lib/sh -rdynamic -g -O2 -o bash shell.o eval.o y.tab.o general.o make_cmd.o print_cmd.o dispose_cmd.o execu

Re: can we have checkwinsize by default?

2012-03-11 Thread Chet Ramey
On 3/9/12 9:51 AM, dooble M wrote: > Fix: > Make it the default? > Debian have this in /etc/bash.bashrc : > > # check the window size after each command and, if necessary, > # update the values of LINES and COLUMNS. > shopt -s checkwinsize > > I th

Re: Link failure: multiple definition of getenv

2012-03-11 Thread Chet Ramey
On 3/11/12 9:38 AM, Matthew Farkas-Dyck wrote: > Hello. > > I am trying to build bash against uClibc. Build fails thus: > > $ make > ... > x86_64-linux-gcc -L./builtins -L./lib/readline -L./lib/readline > -L./lib/glob -L./lib/tilde -L./lib/malloc -L./lib/sh -rdynamic -g > -O2 -o bash shell.o ev

Re: Link failure: multiple definition of getenv

2012-03-11 Thread Matthew Farkas-Dyck
11/03/2012, Chet Ramey wrote: > ... force the issue by editing config.cache to > set the value of `bash_cv_getenv_redef' to 0 and rerun `configure -C'. Works now. Thanks. > Chet > Cheers, MFD

Re: Can somebody explain to me what u32tochar in /lib/sh/unicode.c is trying to do?

2012-03-11 Thread dethrophes
Am 11.03.2012 00:02, schrieb dethrophes: Am 10.03.2012 23:17, schrieb Chet Ramey: On 3/7/12 12:07 AM, John Kearney wrote: You really should stop using this function. It is just plain wrong, and is not predictable. It may enocde BIG5 and SJIS but is is more by accident that intent. If you wan

[bug] Home dir in PS1 not abbreviated to tilde

2012-03-11 Thread Yongzhi Pan
Tested in GNU bash, version 3.00.16(1)-release and 4.1.2(1)-release. Upon login, home dir is displayed as tilde in PS1: pan@BJ-APN-2 ~$ echo $PS1 \[\033[35m\]\u@\h \w$ \[\033[0m\] pan@BJ-APN-2 ~$ pwd /export/home/pan/ After a cd command, which change directory to $HOME (not changed at all), it is