Mail Archives: djgpp/2002/12/13/04:15:09.1
Arthur J. O'Dwyer (ajo AT andrew DOT cmu DOT edu) wrote:
: > If you are writing a tr-clone, your best bet might be to disable globbing
: > (i think this is not so bad since globbing is meant to work with file
: > names).
: Yeah, that's what I've done as a stopgap measure. But it would be
: nice if globbing worked correctly, so one could invoke a program as
: % tr -d '*\' *.txt
: and have it work as expected. I don't know why I'd want to delete all
You can, with some extra work. 1. Disable globbing as described so
far. 2. When you find an argument that isn't an option (i. e. a file
name) call glob() on it.
Right,
MartinS
- Raw text -