On Tue, Jun 17, 2008 at 2:50 AM, David Bremner <[EMAIL PROTECTED]> wrote:
>>>>>> "Philip" == Philip Ganchev <[EMAIL PROTECTED]> writes:
>    Philip> Perhaps it should only convert
>    Philip> variables it knows should be converted, like PATH,
[...]
> This really seems like a question of the operating environment or
> individual applications more than something the shell can necessarily
> know about.  I know it is unfishy, but it might require configuration.

Fish already remembers idiosyncracies of different programs to do
completion.  Variable syntax is similar to that. Requiring the shell
remember such info is to due a lack of design of early Unix systems, I
think.

> I'm just thinking out loud here, but two options that
> come to mind are
>     1) a builtin to declare variable as an array
>         split ':' LS_COLOURS
>     2) automagically deal with : delimited strings as arrays.
>          set foo 'a:b:c'
>          foo[1]='d'
>          echo $foo
>    would yield a:d:c

Option (2) is just to have all Fish arrays be colon-delimited, right?
That may be the simples solution, but seems a bit unsatisfying
conceptually.  We may as well use Posix for everything.


>    Philip> I can't make it work in Bash or Tcsh. How is ":" inside a
>    Philip> file name distinguished from a delimiter?

I meant putting "a:b" as one entry inside the PATH environment variable.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to