~ in script refers to /root instead of /home/username

Bug #759019 reported by Lieven on 2011-04-12
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu
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)

Lieven (lieven-debels) wrote :
Lieven (lieven-debels) on 2011-04-12
affects: aptdaemon (Ubuntu) → ubuntu
Brian Murray (brian-murray) wrote :

I've reported bug 760140 with a detailed analysis of the issue and I'm going to mark this as a duplicate of that.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments