[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
possible problem with $(dir ... )
From: |
Warren Dodge |
Subject: |
possible problem with $(dir ... ) |
Date: |
Tue, 13 Jul 2010 12:44:21 -0700 |
I notice that $(dir ...) leaves the trailing / when given a full
filename path.
Is there an easy way to remove the trailing / ?
It would nice to have a function that didn't leave it there in some
applications we have.
I tried to do this so I could get the root dir of a program, but it
fails to give me /x/y/z and gives /x/y/z/bin/ . I assume the trailing /
in /x/y/z/bin/ is the problem.
$(dir $(dir /x/y/z/bin/program))
I was trying to avoid using $(shell ... ) which I assume is slower.
- possible problem with $(dir ... ),
Warren Dodge <=