Re: Tilde expansion in assignment-like context

2018-08-07 Thread Chet Ramey
On 8/7/18 1:39 AM, Ilkka Virta wrote: > The paragraph about assignments could be expanded to say "This applies also > to regular command-line arguments that look like assignments." or something > like that. That's fair. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer

Re: Tilde expansion in assignment-like context

2018-08-06 Thread Ilkka Virta
On 6.8. 22:45, Chet Ramey wrote: Yes. Bash has done this since its earliest days. A word that looks like an assignment statement has tilde expansion performed after unquoted =~ and :~ no matter where it appears on the command line. Given that options starting with a double-dashes

Re: Tilde expansion in assignment-like context

2018-08-06 Thread Clint Hepner
> On 2018 Aug 6 , at 3:45 p, Chet Ramey wrote: > > On 8/6/18 3:09 PM, Clint Hepner wrote: > >> Bash Version: 4.4 >> Patch Level: 19 >> Release Status: release >> >> Description: >>A non-initial unquoted tilde is expanded outside of an assignment. >> This >>was raised as a

Re: Tilde expansion in assignment-like context

2018-08-06 Thread Chet Ramey
On 8/6/18 3:09 PM, Clint Hepner wrote: > Bash Version: 4.4 > Patch Level: 19 > Release Status: release > > Description: > A non-initial unquoted tilde is expanded outside of an assignment. > This > was raised as a question on Stack Overflow, >

Tilde expansion in assignment-like context

2018-08-06 Thread Clint Hepner
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: darwin16.7.0 Compiler: clang Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='d\ arwin16.7.0' -DCONF_MACHTYPE='x86_64-apple-darwin16.7.0' -DCONF_VENDOR='apple' \