On Mär 26 2018, Jakub Jelinek <ja...@redhat.com> wrote:

> On Mon, Mar 26, 2018 at 08:33:41PM +0200, Andreas Schwab wrote:
>> On Mär 26 2018, Jason Merrill <ja...@redhat.com> wrote:
>> 
>> >     if [catch {exec sh ulimit -v} ulimit_v] {
>> 
>> expect1.1> exec sh ulimit -v
>> sh: ulimit: No such file or directory
>>     while executing
>> "exec sh ulimit -v"
>
> Perhaps
>       if [catch {exec sh -c ulimit -v} ulimit_v] {

expect1.1> exec sh -c ulimit -v
unlimited
expect1.2> exec sh -c {ulimit -v}
4194304

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

Reply via email to