I have a script which, in part, does this...
- 1. Read in the first command line argument.
- 2a. If the argument looks like an absolute path (starts with '/'?), follow code path a.
- 2b. If the argument looks like a relative path (doesn't start with '/'?), follow code path b.
So... I probably just haven't thrown enough time at it, but how the heck do I make this distinction? I know I could just look at the first character in the argument, but how do I do that?