cc:  [email protected]
Subject: Re: [ast-users] Globbing and variable expansion in print -s arguments
--------

> I observe some inconsistency with print -s that I don't understand.
> In one case a call of
> 
>     x=ABC ; print -s Hihi *.txt $x
> 
> will put unexpanded _literal_ 'Hihi *.txt $x' into the command
> history, another time it will put an expanded *.txt file name list
> and an expanded $x variable value into the command history.
> 
> 

I am unable to reproduce this.

Since the expansions are done before the shell knows that the command
is print -s, I don't know how it is possible to not expand *.txt
unless noglob is set or there is no *.txt.

David Korn
[email protected]
_______________________________________________
ast-users mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-users

Reply via email to