[Bug 139097] Re: dash variable expansion error using local, readonly, and export

2025-01-15 Thread Ian! D. Allen
This dash bug appears to be fixed in Ubuntu 24.04.1 LTS
dash Version: 0.5.12-6ubuntu5

The bug still exists in Ubuntu 20.04.6 LTS
dash Version: 0.5.10.2-6

$ x='1 2 3'  
$ export y=$x
dash: 2: export: 2: bad variable name

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/139097

Title:
  dash variable expansion error using local, readonly, and export

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dash/+bug/139097/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 139097] Re: dash variable expansion error using local, readonly, and export

2015-11-24 Thread Jens Getreu
As dash is used to replace bash for non-interactive shells, dash should
reproduce the bash syntax of the `local` keyword as best as it can.

I agree with Dan's comment #7 "the above DASH behaviour is broken, for
all three uses "local", "export", and "readonly". BASH is correct, and
DASH should be fixed."

The "local" keyword should not change anything to the required syntax of the 
assignment, e.g.
if `y=$x` works, `local y=$x` must work also!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/139097

Title:
  dash variable expansion error using local, readonly, and export

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dash/+bug/139097/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 139097] Re: dash variable expansion error using local, readonly, and export

2014-10-04 Thread John Hupp
A comment about Importance: Low.

It seems that this old bug is responsible for breaking the boot process
of clients on Linux Terminal Servers (LTSP) running Lubuntu 14.04.  See
http://bugs.launchpad.net/ubuntu/+source/ltsp/+bug/1330252

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/139097

Title:
  dash variable expansion error using local, readonly, and export

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dash/+bug/139097/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 139097] Re: dash variable expansion error using local, readonly, and export

2010-05-15 Thread Ian! D. Allen
** Description changed:

+ 
  Binary package hint: dash
  
- Linux home 2.6.20-16-generic #2 SMP Thu Jun 7 20:19:32 UTC 2007 i686
- GNU/Linux
+ [Edited May 2010]
+ True for all dash up to at least May 2010.
  
- Bug in variable expansion using an assignment in "local" in dash:
+ Bug in variable expansion (incorrect word-splitting) using an assignment
+ with "local", "readonly", or "export in dash:
  
  $ x='1 2 3'
  $ y=$x# this works fine
  $ echo "$y"
  1 2 3
  
  $ local y=$x  # this fails due to dash bug
  local: 2: bad variable name
  $ echo "$y"
  1
  
- The same use of assignment using "local" works fine in bash:
+ $ readonly y=$x# this fails due to dash bug
+ readonly: 2: bad variable name
+ 
+ $ export y=$x  # this fails due to dash bug
+ export: 2: bad variable name
+ 
+ The same use of assignment using "local", "readonly" and "export" all work
+ fine in bash:
  
  bash-3.2$ x='1 2 3'
- bash-3.2$ y=$x 
+ bash-3.2$ y=$x
  bash-3.2$ echo "$y"
  1 2 3
  bash-3.2$ local y=$x
  bash: local: can only be used in a function
  bash-3.2$ foo () {
  > local y=$x
  > echo "$y"
  > }
  bash-3.2$ foo
  1 2 3
+ 
+ bash-3.2$ readonly y=$x # works fine
+ 
+ bash-3.2$ export y=$x   # works fine

-- 
dash variable expansion error using local, readonly, and export
https://bugs.launchpad.net/bugs/139097
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs