bug-bash
[Top][All Lists]
Advanced

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

Re: problem with extra space; setting? cygwin only?


From: Eli Schwartz
Subject: Re: problem with extra space; setting? cygwin only?
Date: Tue, 23 Jun 2020 15:41:08 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0

On 6/23/20 3:33 PM, L A Walsh wrote:
> On Tue, Jun 23, 2020 at 12:30 PM Greg Wooledge <wooledg@eeg.ccf.org> wrote:
> 
>> On Tue, Jun 23, 2020 at 12:21:24PM -0700, L A Walsh wrote:
>>> set output
>>> output=""printf ${1:+-v $1} "%s:%s" 23 myproc
>>> -Bash: printf: ` output': not a valid identifier
>>
>> Your command is simply wrong.  You've got two double-quotes in a row,
>> which simply cancel each other out, as they contain only the empty
>> string.  So, you are running this:
>>
>> output=printf   ${1:+-v $1}   %s:%s   23   myproc

> It's a gmail feature to mangle your input in weird ways when you
> cut/paste.
> the line with 'output=""' is separate from the "printf" line.  Sorry.

Why would you use their incompetent webmail if you know it is broken?


Be that as it may, I can trivially reproduce your error by destroying my
own $IFS

$ output="" IFS=/
$ set output
$ printf ${1:+-v $1} "%s:%s" 23 myproc
bash: printf: ` output': not a valid identifier


-- 
Eli Schwartz
Arch Linux Bug Wrangler and Trusted User

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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