On 6/23/20 3:33 PM, L A Walsh wrote: > On Tue, Jun 23, 2020 at 12:30 PM Greg Wooledge <wool...@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
signature.asc
Description: OpenPGP digital signature