[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Globbing



| > Saving the last command in the environment is no worse than writing it
| > to a history file, is it?
| 
| yes it is.  (especially if the command uses heredocs.)
| 
| if you want it parsed, that's one thing.  unparsed, that's completely
| different.

Well, that's a good point.   Hypothetically, you'd have them about 50%
parsed, doing redirection operators and variables, but not globbing
so that

	; foo * a[123] $home >snert <<!
	a
	b
	!

would do the equivalent of
	__shell_commandline = 'foo' '*' 'a[123]' '/u/schwartz'
before the exec.

If you're really against this, I won't press the discussion, but I do
think it is an interesting idea.