Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Check write permissions
- X-seq: zsh-users 18951
- From: Sepp Tannhuber <sepp.tannhuber@xxxxxxxx>
- To: "zsh-users@xxxxxxx" <zsh-users@xxxxxxx>
- Subject: Re: Check write permissions
- Date: Wed, 16 Jul 2014 17:26:54 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s1024; t=1405528014; bh=UK8xTUmqD9awA8PuP8WtXxoiRAmPlElS8FBjGb6bJTM=; h=References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=f0byhtb6DkXefFXI1aIgU8egf9+8TKtgcehxUdGLbFiRuq4bb/lY2V7/7g0codfs1UK1+T4m6ifjcpxRmrWkVSpdozzUR81MCXTf4qyhs9Nbex9opImAa6QRbAeH6uBalF0PfLrdmr+RWzB080p8N5g32DY/hycLQhhxqW5VTVI=
- In-reply-to: <140716085147.ZM2489@torch.brasslantern.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <1405517211.83024.YahooMailNeo@web172702.mail.ir2.yahoo.com> <140716085147.ZM2489@torch.brasslantern.com>
- Reply-to: Sepp Tannhuber <sepp.tannhuber@xxxxxxxx>
These solutions are obviously better readable. Thank you.
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> schrieb am 17:54 Mittwoch, 16.Juli 2014:
On Jul 16, 2:26pm, Sepp Tannhuber wrote:
}
} my_variable="${$([[ -w $PWD ]] || echo 0):+my_value}"
Perhaps:
[[ -w $PWD ]] && my_variable='' || my_variable="my_value"
Messages sorted by:
Reverse Date,
Date,
Thread,
Author