bug-bash
[Top][All Lists]
Advanced

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

Re: declare -f does not output esac pattern correctly


From: Emanuele Torre
Subject: Re: declare -f does not output esac pattern correctly
Date: Tue, 27 Feb 2024 12:23:41 +0100
User-agent: Mutt/2.2.12 (2023-09-09)

On Tue, Feb 27, 2024 at 04:10:06PM +0700, Robert Elz wrote:
>     Date:        Tue, 27 Feb 2024 00:50:46 +0100
>     From:        Emanuele Torre <torreemanuele6@gmail.com>
>     Message-ID:  <Zd0j1s452p-Vod6H@t420>
> 
>   | To use esac as a pattern you need to use the (esac) syntax,
> 
> Or quote it
> 
>       'esac')
> 
> (or similar).
> 
> kre
> 

No, then the pattern is  'esac'  not  esac.

In fact, declare -f will print 'esac' and not esac in that case; as it
would print 'es'ac instead of easc if you had used 'es'ac.

After expansion, those patterns are both always esac, but that is
entirely besides the point.

o/
 emanuele6



reply via email to

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