On Apr 7, 2010, at 4:01 AM, Noah Birnel wrote:
> I use backticks out of habit... and maybe ignorance. Can you explain
> your preference?
They are confusing:
echo $( echo $( echo $( echo str ) ) )
echo ` echo \` echo \\\` echo str \\\` \` `
echo $( echo \\ )
echo ` echo \\\ `
Backticks ar
>> # grep thinks the second argument is a file
>> > BL="^index.md$ ^images$" # Black list
>> BL="^index.md$\|^images$" # Black list
>
> Wrong, take a look at this line:
> BL=`echo ${BL} | sed -e "s/\( \+\|^\)/ -e /g"`
Yes, -e allows you to do this. However, in the original code you had
> BL="^i
This code is horrible
> #!/bin/sh
> # sw - 2010 - nibble
>
> # Configuration
> TITLE="foo.org" # Site title
> SUBTITLE="" # Site subtitle
> SITE="site" # Site folder
# grep thinks the second argument is a file
> BL="^index.md$ ^images$" # Black list
BL="^i