Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16450 > unrolled thread

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

Started byChet Ramey <chet.ramey@case.edu>
First post2020-06-23 16:19 -0400
Last post2020-06-23 16:19 -0400
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: problem with extra space; setting? cygwin only? Chet Ramey <chet.ramey@case.edu> - 2020-06-23 16:19 -0400

#16450 — Re: problem with extra space; setting? cygwin only?

FromChet Ramey <chet.ramey@case.edu>
Date2020-06-23 16:19 -0400
SubjectRe: problem with extra space; setting? cygwin only?
Message-ID<mailman.348.1592943578.2574.bug-bash@gnu.org>
On 6/23/20 3:21 PM, L A Walsh wrote:
> I do:
> 
> set output
> echo ">$1<"
>> output<
> output=""printf ${1:+-v $1} "%s:%s" 23 myproc
> 
> 
> 
> -Bash: printf: ` output': not a valid identifier

It looks like word splitting on the result of ${1:+-v $1} isn't taking
place. That might be due to IFS; or because this isn't an accurate
representation of your actual script, which includes quoting; or because
the character between the `v' and `$' isn't a space.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web