Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #11342
| Path | csiph.com!xmission!news.glorb.com!usenet.stanford.edu!not-for-mail |
|---|---|
| From | isabella parakiss <izaberina@gmail.com> |
| 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 | <mailman.8264.1439482071.904.bug-bash@gnu.org> (permalink) |
| 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 <bug-bash.gnu.org> |
| List-Unsubscribe | <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe> |
| List-Archive | <http://lists.gnu.org/archive/html/bug-bash> |
| List-Post | <mailto:bug-bash@gnu.org> |
| List-Help | <mailto:bug-bash-request@gnu.org?subject=help> |
| List-Subscribe | <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe> |
| Xref | csiph.com gnu.bash.bug:11342 |
Show key headers only | View raw
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
Back to gnu.bash.bug | Previous | Next | Find similar
declare -f produces non eval'able output isabella parakiss <izaberina@gmail.com> - 2015-08-13 18:06 +0200
csiph-web