Re: eval a=b\ c

2015-05-25 Thread Linda Walsh
Dennis Williamson wrote: I'm trying to put a command in a variable, but the complex cases always fail! : http://mywiki.wooledge.org/BashFAQ/050 Eval command and security issues : http://mywiki.wooledge.org/BashFAQ/048 Dunno, but I see nothing on that page about using printf -v "%q" or

Re: eval a=b\ c

2015-05-25 Thread Dennis Williamson
I'm trying to put a command in a variable, but the complex cases always fail! : http://mywiki.wooledge.org/BashFAQ/050 Eval command and security issues : http://mywiki.wooledge.org/BashFAQ/048 On Mon, May 25, 2015 at 2:33 PM, wrote: > Configuration Information [Automatically generated, do not c

Re: Check linux 4

2015-05-25 Thread Mike Frysinger
On 25 May 2015 17:38, Chet Ramey wrote: > On 5/25/15 9:15 AM, isabella parakiss wrote: > > This is from configure.ac > > > > linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading > > case "`uname -r`" in > > 2.[[456789]]*|3*) AC_DEFINE(PGRP_PIPE

Re: eval a=b\ c

2015-05-25 Thread Linda Walsh
d...@yost.com wrote: Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu' -DCONF_VENDOR='unknown' -DLO

Re: Check linux 4

2015-05-25 Thread Andreas Schwab
Chet Ramey writes: > 1. Is anyone actually using 4.0 in a distribution? Sure: openSUSE Tumbleweed. > 2. If you're looking at bash-4.3, why would you have expected a version >from a couple of years ago to check for it? I would have expected that it checks for Linux 10.0 as well, or anything

Re: eval a=b\ c

2015-05-25 Thread Charles Daffern
On 25/05/15 20:33, d...@yost.com wrote: > if [[ -n $ZSH_VERSION ]] ; then > echo "[ ${(q)@} ]" > eval${(q)@} > else > echo "[ $@ ]" > eval$@ > fi I believe the bash equivalent here would be something along the lines of: quoted=$(printf '%q ' "$@") quoted=${quoted% } e

Re: Check linux 4

2015-05-25 Thread Chet Ramey
On 5/25/15 9:15 AM, isabella parakiss wrote: > This is from configure.ac > > linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading > case "`uname -r`" in > 2.[[456789]]*|3*) AC_DEFINE(PGRP_PIPE) ;; > esac ;; > > It doesn't c

eval a=b\ c

2015-05-25 Thread dave
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu' -DCONF_VENDOR='unknown' -DLOCALEDIR='/usr/local/bash/

Re: Check linux 4

2015-05-25 Thread Mike Frysinger
On 25 May 2015 15:15, isabella parakiss wrote: > This is from configure.ac > > linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading > case "`uname -r`" in > 2.[[456789]]*|3*) AC_DEFINE(PGRP_PIPE) ;; > esac ;; > > It doesn't

Check linux 4

2015-05-25 Thread isabella parakiss
This is from configure.ac linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading case "`uname -r`" in 2.[[456789]]*|3*) AC_DEFINE(PGRP_PIPE) ;; esac ;; It doesn't check for linux 4. --- xoxo iza