[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Deleting files
From: |
michael-franzese |
Subject: |
Re: Deleting files |
Date: |
Mon, 22 Feb 2021 19:39:08 +0100 |
> Sent: Tuesday, February 23, 2021 at 5:54 AM
> From: "Greg Wooledge" <wooledg@eeg.ccf.org>
> To: "Chris Elvidge" <celvidge001@gmail.com>
> Cc: help-bash@gnu.org, michael-franzese@gmx.com
> Subject: Re: Deleting files
>
> On Mon, Feb 22, 2021 at 02:15:24PM +0000, Chris Elvidge wrote:
> > [ "$3" ] && N="${3^}" && [ "$N" = "T" ] && remove_file=true
>
> Or:
>
> case $3 in [Tt]) remove_file=true;; esac
Can one do
case "$3" in [Tt]) remove_file=true;; esac
Would there be side effects?
> Or:
>
> [[ $3 = [Tt] ]] && remove_file=true
Can one do
[[ "$3" = [Tt] ]] && remove_file=true
Would there be side effects?
> Or a few other ways, depending on the target shell.
>
>
>
- Deleting files, michael-franzese, 2021/02/21
- Re: Deleting files, Russell Lewis, 2021/02/21
- Re: Deleting files, michael-franzese, 2021/02/22
- Re: Deleting files, michael-franzese, 2021/02/22
- Re: Deleting files, Chris Elvidge, 2021/02/22
- Re: Deleting files, michael-franzese, 2021/02/22
- Re: Deleting files, Chris Elvidge, 2021/02/22
- Re: Deleting files, Greg Wooledge, 2021/02/22
- Re: Deleting files,
michael-franzese <=
- Re: Deleting files, Greg Wooledge, 2021/02/22
- Re: Deleting files, Chris F.A. Johnson, 2021/02/22