I've got an application where I need a config file in my pbuilder hooks directory. The trouble is, how does a hook script find it?
bash will give you the full path of the currently executing script in $0, but unlike in csh it doesn't appear you can just take all but the rightmost path element with :r since it only works on history expansion. To be useful it needs to be something really simple since I want something like this: . $0:h/hooks.cfg as the first line of my hook scripts. Anyone have a suggestion on how to do this in bash? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

