News for hackers. Stuff that matters.
Re:SSH Tricks by JoshTriplett on Monday September 19, 2011 @10:01PM (#3015963)
No, I'm not looking to fork and exec a second program, and short of busybox most shells don't have basename built in.

Common idiom, works in POSIX /bin/sh, bash, dash, ash, and every other sh I've encountered. I make a point of avoiding bashisms in /bin/sh scripts, but I have no problem counting on POSIX sh. :)

There are no comments on this comment yet.