Outer problem: I have an app that only works if fed a full path to the file.
It will not work with a relative path (known, documented limitation in
So, I setup a shell alias to call the app, prepending the value of $PWD
to the filename argument passed. This works fine - especially in the most
common use case, which is passing in a simple file name (to invoke the
app on a file in the current directory) - but I have a couple of niggling
issues with this:
1) It won't work right if I happen to invoke the alias with an absolute
path. Because then, the app would get something like:
So, it would be nice to plug this small hole.
2) I'm just curious if there is a better, more built-in way to do
this - some shell tool (something along the lines of basename)
Just for a change of pace, this sig is *not* an obscure reference to