bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: set -x path always returns 1 on fedora34 on arm64


From: Andreas Kusalananda Kähäri
Subject: Re: set -x path always returns 1 on fedora34 on arm64
Date: Wed, 12 May 2021 11:16:12 +0200

On Wed, May 12, 2021 at 04:31:47PM +0800, Boleyn Su wrote:
> Sorry, it is test -x instead of set -x. There are similar results for test
> - r file, [ -r file] and so on.

If "[ -r file]" is your code, then it fails because the "[" utility
needs "]" as its last argument, and you are giving it "file]".  Insert a
space before that last "]".

If that is not the code you are using, then consider posting the code
you are using.  If you don't, we can only really say "it works for me".


> 
> On Wed, May 12, 2021, 13:34 Boleyn Su <boleyn.su@gmail.com> wrote:
> 
> > Please refer to the subject.
> >

-- 
Andreas (Kusalananda) Kähäri
SciLifeLab, NBIS, ICM
Uppsala University, Sweden

.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]