Re: Does "LC_ALL=C" work on all shells?
On Wed, Feb 14, 2024 at 05:11:55PM +0100, Franco Martelli wrote:
> Well, I'll go with env command syntax for shells portability. I was asking
> this because I want to suggest a change to the DDP (Debian Documentation
> Project) members for the releases notes documentation ¹
>
> The change I want to suggest is to add "env LC_ALL=C" to the "script"
> command:
>
> # env LC_ALL=C script -t 2>~/upgrade-bookwormstep.time -a
> ~/upgrade-bookwormstep.script
That command is already using Bourne family shell syntax (the 2> part)
so you can drop the env. It'll fail in csh regardless. On the other
hand, the env doesn't hurt anything. It's just extra typing.
Reply to: