Date:Wed, 10 Jul 2019 19:46:58 -0700
From:L A Walsh
Message-ID: <5d26a322@tlinx.org>
| But it was what I was thinking when I said they were the same.
None of us are mind readers, we cannot know what you were thinking,
only what you said (typed). If you're
On 7/10/19 10:46 PM, L A Walsh wrote:
> To have some horrible disdain for one form of substitution
> but have no problem with the other being done automatically, doesn't
> appear to be a very rational point of view.
Don't worry, I hate the idea of using either one for the purpose of
turning ba
On 2019/07/10 11:04, Chet Ramey wrote:
> On 7/10/19 12:01 PM, L A Walsh wrote:
>
>
>> What do you think aliases are? They are both a simple hash substitution.
>>
>
> They might appear superficially similar, and they use similar internal
> abstractions.
>
>
>> declare -A BASH_CMDS=([l
Hello
The current syntax for hashes doesn't allow interaction between arrays
and hashes. The syntax that would allow it is simple dump of the keys
and values alternating and acceptance of such series of values at
assignment of the hash.
This syntax is long used in Zsh. Example code:
declare -a ar
On 7/10/19 12:01 PM, L A Walsh wrote:
> What do you think aliases are? They are both a simple hash substitution.
They might appear superficially similar, and they use similar internal
abstractions.
> declare -A BASH_CMDS=([ls]="/usr/bin/ls" )
> declare -A BASH_ALIASES=([ls]="/bin/ls" )
And I m
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -g -O2 -fdebug-prefix-map=/tmp/bash/bash-5.0=.
-fstack-protector-strong -Wformat -Werror=format-security -Wall
-Wno-parentheses -Wno-format-security
uname output: Li
Date:Wed, 10 Jul 2019 09:01:28 -0700
From:L A Walsh
Message-ID: <5d260bd8.8010...@tlinx.org>
| What do you think aliases are?
I know exactly what aliases are. (I could just say "useless" but
that's a different kind of what they are than you mean.)
| They are b
On 7/10/19 8:01 AM, L A Walsh wrote:
> Aliases are used internally by bash to store path lookups, by
> default.
No, they are not.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRUc...@case.edu
On 2019/07/10 08:29, Robert Elz wrote:
>
> | Aliases are used internally by bash to store path lookups, by
> | default.
>
> Really? I haven't looked at any bash code in a very long time
> (for licensing reasons, I don't want to be corrupted by the GPL)
> but that sounds like a very weird w
On Wed, Jul 10, 2019 at 10:29:14PM +0700, Robert Elz wrote:
> From:L A Walsh
> | Functions can't process their arguments in the current scope.
>
> I have no idea what you're getting at there.
She wants something like Tcl's [uplevel] command, most likely.
http://www.tcl.tk/man/tcl8
Date:Wed, 10 Jul 2019 05:01:28 -0700
From:L A Walsh
Message-ID: <5d25d398.7010...@tlinx.org>
| You are going to tell me that saying
| int i=1 is too obscure to be deciphered by most, versus
| declare -i i=1;
People can guess at the first, for the second, they c
>
>
> Also not least because aliases are not even ENABLED by default in scripts,
>
Depends on whether or not you are using a POSIX compatible shell.
> In your case, you are trying to dress up bash to look like perl.
---
I use 1 prefix from perl, 'my'
perl doesn't have
int, array o
On 2019/07/10 06:37, Greg Wooledge wrote:
>
> By what metric is "Export" shorter than "-x", or "Map" shorter than "-A",
> or "Int" shorter than "-i"? Certainly not character or byte counts. Nor
> keystrokes.
>
>
declare -[xAi] = 10 characters
int = 3
map=3,
array = 5
On Wed, Jul 10, 2019 at 09:15:14AM -0400, Chet Ramey wrote:
> On 7/10/19 4:01 AM, westlake wrote:
> > If a normal user types "su -l" and issues this "ls" statement,
> This account has the `extglob' shell option enabled.
"su -l" gives you a login shell, so this instance of bash is reading
/etc/prof
On 2019/07/10 06:22, Chet Ramey wrote:
> On 7/9/19 11:24 PM, L A Walsh wrote:
>
>
>>
>> Why? What makes clarity "horrible". If someone didn't know shell's
>> way of assigning different attributes to 'declare', vs. most languages
>> having
>> different keywords or variable notations
On Tue, Jul 09, 2019 at 08:24:30PM -0700, L A Walsh wrote:
> > On Mon, Jul 08, 2019 at 03:30:47PM -0700, L A Walsh wrote:
> >> alias my='declare ' Export='\-x ' Map='-A ' Int='-i '
> All of them are shorter than their original forms
By what metric is "Export" shorter than "-x", or "Map" sh
On 7/9/19 11:24 PM, L A Walsh wrote:
>
> Why? What makes clarity "horrible". If someone didn't know shell's
> way of assigning different attributes to 'declare', vs. most languages
> having
> different keywords or variable notations would be more familiar.
Clarity is fine, but it's an
On 7/10/19 4:01 AM, westlake wrote:
> System: linux 64-bit (debian stable, latest release buster)
> Bash version: GNU bash, version 5.0.3(1)-release (x86_64-pc-linux-gnu)
>
> This bug occurs with the root account,
>
> If a normal user types "su -l" and issues this "ls" statement,
>
> ls -ld .!(?
On Wed, Jul 10, 2019 at 2:03 PM L A Walsh wrote:
>
>
> On 2019/07/10 00:04, Robert Elz wrote:
> > Date:Tue, 09 Jul 2019 20:24:30 -0700
> > From:L A Walsh
> > Message-ID: <5d255a6e.4060...@tlinx.org>
> >
> > | Why? What makes clarity "horrible".
> >
> > It isn'
On 2019/07/10 00:04, Robert Elz wrote:
> Date:Tue, 09 Jul 2019 20:24:30 -0700
> From:L A Walsh
> Message-ID: <5d255a6e.4060...@tlinx.org>
>
> | Why? What makes clarity "horrible".
>
> It isn't the clarity (if you call it that, it is really obscurity
> as no-o
System: linux 64-bit (debian stable, latest release buster)
Bash version: GNU bash, version 5.0.3(1)-release (x86_64-pc-linux-gnu)
This bug occurs with the root account,
If a normal user types "su -l" and issues this "ls" statement,
ls -ld .!(?(.))
the output is without error. (the output list
Date:Tue, 09 Jul 2019 20:24:30 -0700
From:L A Walsh
Message-ID: <5d255a6e.4060...@tlinx.org>
| Why? What makes clarity "horrible".
It isn't the clarity (if you call it that, it is really obscurity
as no-one else can read your scripts/commands and have any idea
22 matches
Mail list logo