zsh-users
 help / color / mirror / code / Atom feed
From: Yuri D'Elia <wavexx@thregr.org>
To: zsh-users@zsh.org
Subject: Re: Expanding quotes
Date: Thu, 26 Dec 2013 15:50:17 +0100	[thread overview]
Message-ID: <l9hfmu$69n$1@ger.gmane.org> (raw)
In-Reply-To: <52B9C1E9.2050000@eastlink.ca>

On 12/24/2013 06:18 PM, Ray Andrews wrote:
> I prefer simplicity with some resulting limitations on what can be done,
> over complicated efforts to do 'anything'.  It's just as Bart said, some
> issues are better left 'unsolved'. The solution could be worse than the 
> problem.  I think back to my DOS days, where almost all of the 'special'
> characters were reserved--it sure made things simpler.

I think you're conflating the text UI of a shell, the filesystem and the
shell language itself as part of the same issue. Yes, taken together, I
do agree that from my user point of view it's definitely inconvenient
and the interaction is not ideal. However, I would gladly prefer a shell
solution than "fixing" what's clearly not broken: the filesystem.

If you use a visual file manager, users will curse your from not being
allowed to use quotes and spaces as part of the file name. I know
windows users complain all the time about the disallowed characters,
because they don't see the reasons of the restricted character set
anymore (this is true also for users of nautilus/gnome/kde of course). I
also agree with these users.

> And mine ;-) I come at this, not as a zsh expert, but as a guy who knows
> something about information theory. Noam Chomsky would have something to
> say about this sort of issue.

The line-editing interface has definitely limitations, but I would
always like to think about it just as one of the possible interfaces to
the file system.

Imagine a different shell, where you had to different insertion modes,
like "vi". To enter a path, you would enter "pathname" mode with ESCp,
and the shell would keep track internally of the beginning and end of
the file name, while just showing the path maybe in a different color:

% some-command ESCppath name with spacesESCc continue command

Problem solved without escaping entirely?
(damn, I would love such a shell).



  reply	other threads:[~2013-12-26 14:55 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-17 14:48 Yuri D'Elia
2013-12-17 18:26 ` Bart Schaefer
2013-12-23 17:38   ` Yuri D'Elia
2013-12-23 19:15     ` Bart Schaefer
2013-12-24 15:12       ` Ray Andrews
2013-12-24 16:24         ` Yuri D'Elia
2013-12-24 17:18           ` Ray Andrews
2013-12-26 14:50             ` Yuri D'Elia [this message]
2013-12-26 19:54               ` Ray Andrews
2013-12-24 16:11       ` Yuri D'Elia
2013-12-25  6:59         ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='l9hfmu$69n$1@ger.gmane.org' \
    --to=wavexx@thregr.org \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).