On Fri, Jul 5, 2013 at 5:56 PM, David Korn <[email protected]> wrote:
> 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.

Janis, what does ls -l print in the directory you test this in? Do you
have IFS or other variables set in your ~/.kshrc or /etc/ksh.kshrc?

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

Reply via email to