~ in script refers to /root instead of /home/username
Bug #759019 reported by
Lieven
This bug report is a duplicate of:
Bug #760140: HOME environmental variable no long preserved with sudo by default.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: aptdaemon
Ubuntu 11.04 beta
When executing the following script,
#!/bin/bash
echo ~
it returns /root, whereas in previous ubuntu versions, it returned /home/username (see attached screenshot)
affects: | aptdaemon (Ubuntu) → ubuntu |
To post a comment you must log in.
I've reported bug 760140 with a detailed analysis of the issue and I'm going to mark this as a duplicate of that.