help-bash
[Top][All Lists]
Advanced

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

Re: cope with spaces in an environment variable


From: Kerin Millar
Subject: Re: cope with spaces in an environment variable
Date: Sun, 18 Jun 2023 20:22:35 +0100

On Mon, 19 Jun 2023 03:37:24 +0900
Masahiro Yamada <masahiroy@kernel.org> wrote:

> Hi.
> 
> I'd like to know the proper handling of an environment variable
> when the value may contain spaces (with quoting).
> 
> Here is my question.
> 
> You have the environment variable 'CC', which contains a compiler path.
> 
> For example, how to write a shell script to
> compile a C file with ${CC}?

By shell script, do you mean that POSX sh is the intended target?

-- 
Kerin Millar



reply via email to

[Prev in Thread] Current Thread [Next in Thread]