Ticket #405: dlname-test

File dlname-test, 164 bytes (added by Olly Betts, 15 years ago)

file to test using a temporary for $1

Line 
1#!/bin/sh
2dlname=foo
3
4extract_dlname() {
5 lafile=$1
6 dlname=
7 eval `grep ^dlname= "$lafile" 2>/dev/null`
8}
9
10 dlname=bar
11extract_dlname "$0"
12echo "$dlname"