sudo issue

Vesa-Pekka Tapani Mikkola mikkola.pekka at saunalahti.fi
Mon Aug 1 14:47:41 UTC 2016


I left the Arch behind and choose Ubuntu instead.

Maby later.

I have to get more familiar first.


Pekka


01.08.2016, 14:54, Karl Auer kirjoitti:
> On Mon, 2016-08-01 at 13:41 +0200, Ralf Mardorf wrote:
>> Another alternative would be to use a bashism, since e.g.
>>    $ sudo cp -rp /mnt/archlinux/.chuser/.home/.jwm{rc,foo} /tmp/
>> works.
> That is an explicit set of alternatives. That's why it works - bash
> expands that to a list of paths, but generating the list does not
> require access to the filesystem.
>
> That solution only works if you are able to list every alternative in
> advance. And it will throw up errors for every variant that does not
> exist:
>
>     kauer at kt:~$ ls z*.txt
>     z1.txt
>     kauer at kt:~$ ls z{1,2}.txt
>     ls: cannot access 'z2.txt': No such file or directory
>     z1.txt
>     
> Regards, K.
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mikkola_pekka.vcf
Type: text/x-vcard
Size: 245 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20160801/579e7a3f/attachment.vcf>


More information about the ubuntu-users mailing list