help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] Can anyone explain this?


From: John Kearney
Subject: Re: [Help-bash] Can anyone explain this?
Date: Fri, 04 May 2012 23:59:21 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1

See
http://lists.gnu.org/archive/html/bug-bash/2012-04/msg00088.html


Am 04.05.2012 23:52, schrieb Bill Gradwohl:
#!/bin/bash

declare -r Debug='yes'

prepArea() {
   local -r Debug='x'
echo hello "${Debug}" there
exit
}

prepArea
exit 0
======================
Produces:
address@hidden ycc# ./xxx
./xxx: line 6: local: Debug: readonly variable
hello yes there


I think this is a bug.

--
Bill Gradwohl



--
View
          John Kearney's profile on LinkedIn John
          Kearney

reply via email to

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