Re: $var invokes function?

2009-08-08 Thread BuraphaLinux Server
Not exactly what you asked for, but works the same: #! /bin/bash today() { date } printf "today is %s\n" "$(today)" exit 0 It is easier to just use $(date) directly though. On 8/8/09, jscripter wrote: > > Hi, > > Is it possible to create a variable whose value is determined by a function? >

Re: Bash-3.2 Official Patch 49

2009-06-18 Thread BuraphaLinux Server
The .sig file for the patch did not get uploaded (bash32-049.sig) to the directory ftp://ftp.cwru.edu/pub/bash/bash-3.2-patches/ yet. On 6/19/09, Chet Ramey wrote: >BASH PATCH REPORT >= > > Bash-Release: 3.2 > Patch-ID: bash

bash4 --disable-aliases

2009-06-16 Thread BuraphaLinux Server
For bash, I normally build a rescue shell using the option --disable-alias When testing bash 4.0 with patches 001 through 024 applied, and this configure: ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --libdir=/lib \ --sbindir=/sbin \ --bindir=/bin \ --mandir=/usr/man \ --infod

Re: Problem with "for loop" in "here document"

2008-07-09 Thread BuraphaLinux Server
put a backslash in front of the $ so that it is not substituted when the here document read, but later when you run that code. On 7/9/08, Mr Aras <[EMAIL PROTECTED]> wrote: > > Hi, > > I've been trying to implement a "for loop" in a "here document" but the > "name" is never assigned to any of the

subshell vs. su and +e

2007-07-20 Thread BuraphaLinux Server
This script, when run as root, gives me this: BLS #./psycho + umask 0022 + mkdir /tmp/mindy + chown nobody.nobody /tmp/mindy + set +e + su -p nobody -s /sbin/bash + cd /tmp/mindy + shazbot is not a valid command /bin/sh: line 6: shazbot: command not found + (( 0!=0 )) + echo 'should not ever get