[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New utility suggestion: chdir(1)
From: |
Kaz Kylheku (Coreutils) |
Subject: |
Re: New utility suggestion: chdir(1) |
Date: |
Sat, 26 Aug 2017 18:23:33 -0700 |
User-agent: |
Roundcube Webmail/0.9.2 |
On 26.08.2017 11:10, Colin Watson wrote:
sudo chroot /path/to/chroot sh -c 'cd /foo && ls -l'
The -c option is not the only way to pass a script to the shell.
You can also pipe it in.
This means dealing with shell quoting, which is tedious and
error-prone.
sh <<'end'
echo 'hello, world'
end
- Re: New utility suggestion: chdir(1), (continued)
- Re: New utility suggestion: chdir(1), Colin Watson, 2017/08/26
- Re: New utility suggestion: chdir(1), Pádraig Brady, 2017/08/26
- Re: New utility suggestion: chdir(1), Colin Watson, 2017/08/27
- Re: New utility suggestion: chdir(1), Pádraig Brady, 2017/08/27
- Re: New utility suggestion: chdir(1), Bernhard Voelker, 2017/08/28
- Re: New utility suggestion: chdir(1), Pádraig Brady, 2017/08/28
- Re: New utility suggestion: chdir(1), Pádraig Brady, 2017/08/28
- Re: New utility suggestion: chdir(1), Jim Meyering, 2017/08/29
- Re: New utility suggestion: chdir(1), Pádraig Brady, 2017/08/29
- Re: New utility suggestion: chdir(1), Colin Watson, 2017/08/29
Re: New utility suggestion: chdir(1),
Kaz Kylheku (Coreutils) <=
Re: New utility suggestion: chdir(1), Kaz Kylheku (Coreutils), 2017/08/27