[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Valid characters for function names
From: |
Greg Wooledge |
Subject: |
Re: Valid characters for function names |
Date: |
Tue, 26 Nov 2019 11:31:47 -0500 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
On Tue, Nov 26, 2019 at 11:14:38AM -0500, Chet Ramey wrote:
> This is a reasonable addition, with the caveat that `fname' is virtually
> unlimited. It can't contain any quoted characters, or contain NUL (like any
> bash string) or `$' (and that is dubious). You can even define a function
> whose name contains a slash -- you'll just never be able to call it.
wooledg:~$ bash
wooledg:~$ function /bin/ls { echo haha; }
wooledg:~$ /bin/ls
haha