#!/bin/sh # # cd 1.3 - equivalents for normally builtin commands. Author: Kees J. Bot match $0 { with */* setglobal command = $[expr $0 : '.*/\(.*\)] with * setglobal command = $0 } $command @Argv