Please tell me what is wrong with the following line that I have in a bash
script:-
[code]
TODAYDATE=`date +%Y%m%d`
declare -a FiLeS=( $TODAYDATE.TeleformDB.tar.bz2
$TODAYDATE.TeleformDB2.tar.bz2 )
[/code]
When I run it I get:-
Syntax error: ( unexpected
--
View this message in context:
On Wed, May 27, 2009 at 03:33:10AM -0700, straygrey wrote:
Please tell me what is wrong with the following line that I have in a bash
script:-
[code]
TODAYDATE=`date +%Y%m%d`
declare -a FiLeS=( $TODAYDATE.TeleformDB.tar.bz2
$TODAYDATE.TeleformDB2.tar.bz2 )
[/code]
When I run it I get:-
This is nothing new; it happens in all versions of bash:
printf Enter something:
read -e whatever
Press a key, then cursor left (or ^A); the cursor moves to the
beginning of the line, over E instead of over the character just
entered.
--
Chris F.A. Johnson, webmaster