Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: LC_ALL=C foo, where foo is a shell function



On Jul 9,  9:14pm, Vincent Lefevre wrote:
}
} If I type
} 
}   foo() { some_command }
}   LC_ALL=C foo
} 
} then this sets LC_ALL to C in the current shell, probably because foo
} is evaluated in the current shell.

Doesn't happen to me:

schaefer<501> foo() { echo $LC_ALL }
schaefer<502> LC_ALL=C foo
C
schaefer<503> echo $LC_ALL

schaefer<504> foo() { /bin/echo $LC_ALL }
schaefer<505> LC_ALL=C foo               
C
schaefer<506> echo $LC_ALL

schaefer<507> 


What version of zsh are you testing?



Messages sorted by: Reverse Date, Date, Thread, Author