help-bash
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
[Help-bash] Can anyone explain this?
From
:
Bill Gradwohl
Subject
:
[Help-bash] Can anyone explain this?
Date
:
Fri, 4 May 2012 15:52:51 -0600
#!/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
reply via email to
[Prev in Thread]
Current Thread
[
Next in Thread
]
[Help-bash] Can anyone explain this?
,
Bill Gradwohl
<=
Re: [Help-bash] Can anyone explain this?
,
John Kearney
,
2012/05/04
Re: [Help-bash] Can anyone explain this?
,
Bill Gradwohl
,
2012/05/04
Re: [Help-bash] Can anyone explain this?
,
Dan Douglas
,
2012/05/04
Re: [Help-bash] Can anyone explain this?
,
Chet Ramey
,
2012/05/04
Re: [Help-bash] Can anyone explain this?
,
Dan Douglas
,
2012/05/04
Prev by Date:
Re: [Help-bash] How to make variable set in () accessible outside?
Next by Date:
Re: [Help-bash] Can anyone explain this?
Previous by thread:
[Help-bash] Adding preceding string to the commands printed when set -v is enabled
Next by thread:
Re: [Help-bash] Can anyone explain this?
Index(es):
Date
Thread