problems with a subshell in .profile

2009-10-17 Thread Nils
I use a shared .profile for bash and ksh93, I have a ksh93 specific section which I want to separate through the following construct: if ( test -n "${.sh.version}" ) 2>/dev/null; then echo "ksh" fi bash just hangs while it works in POSIX shell and ksh93. A bash script with above contents also

another problem with bash PS1 handling

2009-10-17 Thread Nils
PS1='$( [ "${LOGNAME}" != root ] && color=green )' works in ksh93 and POSIX shell but fails in bash as bash seems to expand the "!" to the next history file number before doing command substitution. Setting PS1='$( [ "${LOGNAME}" !!= root ] && color=green )' preserves the "!" and works in bash but

bash for AIX installp image

2009-10-17 Thread Perry Smith
Hi, I hope I am not being a pest. I compiled and uploaded bash 4.0 with patch level 033 this weekend. The path to the base web site is http://aix-consulting.net Enjoy, Perry Ease Software, Inc. ( http://www.easesoftware.com ) Low cost SATA Disk Systems for IBMs p5, pSeries, and RS/6000 AIX

Re: "Sed" Question

2009-10-17 Thread Allodoxaphobia
On Wed, 14 Oct 2009 15:05:09 -0400, Greg Wooledge wrote: > On Wed, Oct 14, 2009 at 12:24:30PM -0600, Bob Proulx wrote: >> Pierre Gaston wrote: >> > Please consider asking in a sed mailing list like: >> > http://sed.sourceforge.net/#mailing >> > or maybe in the usenet group comp.unix.shell >> >> I

Re: Oddities when tab-completing filenames containing backticks

2009-10-17 Thread bash-bugs
2009/10/16 Chet Ramey : > You need to remember that readline understands the characters in > rl_completer_quote_characters as those which, in pairs, delimit quoted > substrings in the line. It performs completion (allowing the application > to take first crack, of course) on the substring, using

bug-bash@gnu.org

2009-10-17 Thread Sitaram Chamarty
Hello, When the previous command was backgrounded (say "gvim filename.c &") and then you try some other command using Alt-., it expands to "&" and not "filename.c". Is this considered a bug? Or correct behaviour that just happens to be not useful in this specific case? Thanks, Sitaram

Prompt - cursor position - command history display problem

2009-10-17 Thread Timothy James Erlenmeyer
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu' -DCONF_VENDOR='unknown' -DLOCALEDIR='/usr/local/sh