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

Re: bash completion and spaces



Hi,

Greg Wooledge wrote:
> Not the parser, technically.  The correct term is word splitting.

Always good to know which part of the shell tries to bite me. :))


> $ string='  hi    there     '
> [...]
> $ printf '<%s> ' $string ; echo
> <hi> <there>

As C programmer i am now tempted to scream.
(This command should really not have the same name as printf(3).)


> All of this is why proper quoting is absolutely essential when working
> with the shell.

+1


Have a nice day :)

Thomas


Reply to: