|
|
|
|
|
by saurik
1041 days ago
|
|
"$@" would have worked just as well there, instead of the final three lines: you pulled cmd off the front just to... put it back. (I wouldn't recommend doing either of these, though, as it is weird that random other commands are valid there, such as "ls"; you should use a case statement.) |
|
As soon as any complexity or validation is needed I move to python, which is usually a better fit, and arguably even more portable.