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

Bug #759019 reported by Lieven
6
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)

Revision history for this message
Lieven (lieven-debels) wrote :
Lieven (lieven-debels)
affects: aptdaemon (Ubuntu) → ubuntu
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.