Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #16450 > unrolled thread
| Started by | Chet Ramey <chet.ramey@case.edu> |
|---|---|
| First post | 2020-06-23 16:19 -0400 |
| Last post | 2020-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.
Re: problem with extra space; setting? cygwin only? Chet Ramey <chet.ramey@case.edu> - 2020-06-23 16:19 -0400
| From | Chet Ramey <chet.ramey@case.edu> |
|---|---|
| Date | 2020-06-23 16:19 -0400 |
| Subject | Re: 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/
Back to top | Article view | gnu.bash.bug
csiph-web