unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Ekaitz Zarraga <ekaitz@elenq.tech>
To: "Ludovic Courtès" <ludovic.courtes@inria.fr>
Cc: 63048@debbugs.gnu.org
Subject: bug#63048: [Home] Shell alias values are not properly quoted
Date: Mon, 24 Apr 2023 10:10:29 +0000	[thread overview]
Message-ID: <ysOR2QV1qAMeJ5roGVJ9dGgucalDbc-dZqiy1Fxry5G1t-db79TUwoOzEbhgJ5tIqXlxCN_pfKHi3UBf7Hz-AlFjs7XI0FYfBZUVyui_WhY=@elenq.tech> (raw)
In-Reply-To: <875y9l67c5.fsf@inria.fr>

As an extra note:

The problem I encountered was when the alias was defined using single quote marks:

alias ls='ls blabla "problem"'

this is parsed to:

("ls" . "blabla \"problem\"")

Which is written as:

alias ls="blabla "problem""

Which is wrong.

So the problem relies on the fact that the quotations marks have been changed from ' to " and the escaping have not been adjusted accordingly.

:)




  reply	other threads:[~2023-04-24 10:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-24  7:57 bug#63048: [Home] Shell alias values are not properly quoted Ludovic Courtès
2023-04-24 10:10 ` Ekaitz Zarraga [this message]
2023-04-24 17:41   ` Ekaitz Zarraga
2023-07-06 15:01     ` bug#63048: [PATCH] home: services: bash: Properly quote shell aliases Ludovic Courtès
2023-07-11 15:02       ` bug#63048: [Home] Shell alias values are not properly quoted Ludovic Courtès

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to='ysOR2QV1qAMeJ5roGVJ9dGgucalDbc-dZqiy1Fxry5G1t-db79TUwoOzEbhgJ5tIqXlxCN_pfKHi3UBf7Hz-AlFjs7XI0FYfBZUVyui_WhY=@elenq.tech' \
    --to=ekaitz@elenq.tech \
    --cc=63048@debbugs.gnu.org \
    --cc=ludovic.courtes@inria.fr \
    /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.savannah.gnu.org/cgit/guix.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).