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?
>
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
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
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
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