Path: csiph.com!xmission!news.glorb.com!usenet.stanford.edu!not-for-mail From: isabella parakiss Newsgroups: gnu.bash.bug Subject: declare -f produces non eval'able output Date: Thu, 13 Aug 2015 18:06:44 +0200 Lines: 15 Approved: bug-bash@gnu.org Message-ID: NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Trace: usenet.stanford.edu 1439482071 27735 208.118.235.17 (13 Aug 2015 16:07:51 GMT) X-Complaints-To: action@cs.stanford.edu To: bug-bash@gnu.org Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:user-agent:mime-version :content-type; bh=KHetQEBGUncohV/hVd5nLTR/2Q2rYljUC5X0dwhVLC8=; b=M7sMTIvbALQO0byfysJ0t5gFgGpZwQJmP7w4nKUDL6RMemUxdTnqGhu1z/v1UrItV+ LS9XhZ2Nt8SmiohuwFHKDuJw3/Jj/g6l40tDsT0+xbFoSHJ+OaUVKezvhCFrYqn1+2Ta RXLst/dpxWo98AM6TruNvBAJwOyWSOK4U3ACPdvPfkfFz20gDdLzdThtk2HfjXuO309L 6fmty4n+nx42zDKelXMo92QHF48fr9l59Hp0DENZUV/1ltMhc+jWnBYZd026uq2lmm7s vLXIthr8UD3YA08wF+rYPwNRd8Dsc10baYQRohcuJyzt2lQSBX43p9QqLSZt+RRuI/6D QY5w== X-Received: by 10.180.86.138 with SMTP id p10mr8291876wiz.39.1439482057842; Thu, 13 Aug 2015 09:07:37 -0700 (PDT) User-Agent: mail v14.8.4 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::22e X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.bash.bug:11342 declare -f doesn't know that most keywords are valid function names: $ function time () { :; } $ declare -f time time () { : } It should probably check if the name is if/for/time... before printing it. --- xoxo iza