Mailinglist Archive: opensuse (2008 mails)
| < Previous | Next > |
Re: [opensuse] zypper lu and zypper up inconsistent
- From: Anders Johansson <ajohansson@xxxxxxx>
- Date: Tue, 14 Apr 2009 01:42:45 +0200
- Message-id: <200904140142.45320.ajohansson@xxxxxxx>
On Tuesday 14 April 2009 01:34:41 Rajko M. wrote:
Because $HOME gets evaluated before sudo is called. The call is translated by
bash to
sudo echo /home/rm
Try
sudo bash -c 'echo $HOME'
The apostrophes prevent bash from translating it before passing it on to sudo
Anders
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
Why is difference in output of command echo?
Because $HOME gets evaluated before sudo is called. The call is translated by
bash to
sudo echo /home/rm
Try
sudo bash -c 'echo $HOME'
The apostrophes prevent bash from translating it before passing it on to sudo
Anders
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |