FreeBSD 8.0-RELEASE
$SHELL: csh
With this simple script:
Running
outputs
Running
outputs
Apparently, from post elsewhere, this is a FreeBSD anomaly, does not error on Linux.
I'm confused. Can anyone provide an explanation for this?
Thanks
J
$SHELL: csh
With this simple script:
Code:
#! /bin/sh
# jw-rotate.sh
# Apache log rotation script for multiple virtual domains
VIRTUAL_HOST_NAME=( x1.com x2.com x3.com )
echo ${VIRTUAL_HOST_NAME[@]}
Code:
./jw-rotate.sh
outputs
Code:
./jw-rotate.sh: 5: Syntax error: word unexpected (expecting ")")
Running
Code:
bash ./jw-rotate.sh
outputs
Code:
x1.com x2.com x3.com
Apparently, from post elsewhere, this is a FreeBSD anomaly, does not error on Linux.
I'm confused. Can anyone provide an explanation for this?
Thanks
J