bug-bash
[Top][All Lists]
Advanced

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

Re: Issues with exported functions


From: becker . rg
Subject: Re: Issues with exported functions
Date: Sat, 27 Sep 2014 04:44:09 -0700 (PDT)
User-agent: G2/1.0

I currently have this problem with the latest bash from Arch linux which is 
biting my at(1) commands. Exported functions make the environment 
non-parseable. 

##############################################################
robin@bunyip:~
$ export -nf psg hsg  #clean out my exported functions
robin@bunyip:~
$ (env;echo echo 'hello') | bash
hello
robin@bunyip:~
$ bilbo(){
> echo 'precious'
> }
robin@bunyip:~
$ export -f bilbo
robin@bunyip:~
$ (env;echo echo 'hello') | bash
bash: line 29: syntax error near unexpected token `='
bash: line 29: `BASH_FUNC_bilbo()=() {  echo 'precious''
robin@bunyip:~
$ 
###########################################################

latest bash changes can be seen here (various CVE stuff).

https://projects.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/bash&id=66b6f8f71f48b425c53b781c531697988413e503


reply via email to

[Prev in Thread] Current Thread [Next in Thread]