.bashrc test syntax different between user and root
Bug #228747 reported by
Christer Edwards
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu CD Images |
Invalid
|
Undecided
|
Unassigned | ||
base-files (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
bash (Ubuntu) |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
Binary package hint: bash
I will admit right off the bat that this is in no way a critical bug and is likely submitted by my OCD behavior.
In running a diff -u comparing the ~/.bashrc with the /root/.bashrc I notice that a test statement is handled, while accurately, using two formats.
26c19
< if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
---
> if [ -z "$debian_chroot" -a -r /etc/debian_chroot ]; then
While both are perfectly functional it just stood out to me as inconsistent.
Changed in base-files: | |
status: | New → Confirmed |
To post a comment you must log in.
Maybe someone can check if this is also the case on a fresh install...