Re: static vs. dynamic scoping

2010-11-10 Thread Clark J. Wang
On Wed, Nov 10, 2010 at 6:37 PM, Marc Herbert wrote: > Chris F.A. Johnson: > > I find the bash behaviour more logical, and I do use it in scripts. > > Examples? > > http://fvue.nl/wiki/Bash:_Passing_variables_by_reference , I like that.

Re: Inconsistency of physical / logical directory structure and tab completion

2010-11-10 Thread Roman Rakus
On 11/10/2010 05:25 PM, Roman Rakus wrote: $ tree -p . ├── [-rwxrwxr-x] out_bin ├── [-rw-rw-r--] out_not_bin ├── [drwxrwxr-x] out_of_recursion └── [drwxrwxr-x] recursion ├── [-rwxrwxr-x] bin ├── [lrwxrwxrwx] in -> ../recursion/ ├── [-rw-rw-r--] not_bin └── [drwxrwxr-x] without Ah, there are m

Inconsistency of physical / logical directory structure and tab completion

2010-11-10 Thread Roman Rakus
$ tree -p . ├── [-rwxrwxr-x] out_bin ├── [-rw-rw-r--] out_not_bin ├── [drwxrwxr-x] out_of_recursion └── [drwxrwxr-x] recursion ├── [-rwxrwxr-x] bin ├── [lrwxrwxrwx] in -> ../recursion/ ├── [-rw-rw-r--] not_bin └── [drwxrwxr-x] without 4 directories, 4 files let's go into recursion dir $ cd recu

Re: static vs. dynamic scoping

2010-11-10 Thread Marc Herbert
Eric Blake: > On the Austin Group mailing list, David Korn (of ksh93 fame) > complained[1] that bash's 'local' uses dynamic scoping, but that ksh's > 'typeset' uses static scoping, and argued that static scoping is saner > since it matches the behavior of declarative languages like C and Java > (dy