View Single Post
 
Old September 12th, 2004, 09:49 PM
jkeen jkeen is offline
Registered User
 
Join Date: Sep 2004
Location: Brooklyn, NY, USA.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 2: Use of :- in cd_db

The code ':-' appears in three different locations apparently unrelated to parameter expansion in the 'cd_db' CD project which concludes Chapter 2.

1. function: set_menu_choice()

    echo "Options :-"

2. function: update_cd()

    echo "Current tracks are :-"

3. function: list_tracks()

    echo "$cdtitle :-"

Since in these three locations ':-' does NOT occur in the context of parameter expansion (as discussed on p 71, e.g., ${param:-default}), I don't see what ':-' adds here ... except for confusion.

Jim Keenan


Just Another Perl Hacker