From unknown Thu Sep 11 18:36:44 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#16005 <16005@debbugs.gnu.org> To: bug#16005 <16005@debbugs.gnu.org> Subject: Status: inferior-lisp and filenames with spaces Reply-To: bug#16005 <16005@debbugs.gnu.org> Date: Fri, 12 Sep 2025 01:36:44 +0000 retitle 16005 inferior-lisp and filenames with spaces reassign 16005 emacs submitter 16005 Steven Litvintchouk severity 16005 minor tag 16005 moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 29 18:19:20 2013 Received: (at submit) by debbugs.gnu.org; 29 Nov 2013 23:19:20 +0000 Received: from localhost ([127.0.0.1]:50730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VmXLC-0005IE-VP for submit@debbugs.gnu.org; Fri, 29 Nov 2013 18:19:20 -0500 Received: from eggs.gnu.org ([208.118.235.92]:39240) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VmUgd-0008Ic-G1 for submit@debbugs.gnu.org; Fri, 29 Nov 2013 15:29:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VmUgO-0000Cb-Iy for submit@debbugs.gnu.org; Fri, 29 Nov 2013 15:29:10 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,HTML_MESSAGE autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:42833) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VmUgO-0000CX-FG for submit@debbugs.gnu.org; Fri, 29 Nov 2013 15:29:00 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40917) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VmUgH-0007gk-1S for bug-gnu-emacs@gnu.org; Fri, 29 Nov 2013 15:29:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VmUg9-00008f-Jf for bug-gnu-emacs@gnu.org; Fri, 29 Nov 2013 15:28:52 -0500 Received: from elasmtp-kukur.atl.sa.earthlink.net ([209.86.89.65]:51764) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VmUg9-00008W-7J for bug-gnu-emacs@gnu.org; Fri, 29 Nov 2013 15:28:45 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=earthlink.net; b=sKiTP2nNi51QKnZhoKqTFJaFnq6LDauvEmMePApwm+hWHwPfq9IsUZRpsAHyp7iP; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:X-ELNK-Trace:X-Originating-IP; Received: from [68.162.238.44] (helo=[192.168.0.3]) by elasmtp-kukur.atl.sa.earthlink.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1VmUg4-0006cC-C7; Fri, 29 Nov 2013 15:28:41 -0500 Message-ID: <5298F8AD.5020606@earthlink.net> Date: Fri, 29 Nov 2013 15:27:25 -0500 From: Steven Litvintchouk User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: 24.3; function inferior-lisp needs patch to work with certain filenames in Windows-NT Content-Type: multipart/alternative; boundary="------------010007050100010205080009" X-ELNK-Trace: d3fff546685dead41aa676d7e74259b7b3291a7d08dfec79e1b91a68ac78ff83ad77b2b821b55267350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 68.162.238.44 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 29 Nov 2013 18:19:17 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) This is a multi-part message in MIME format. --------------010007050100010205080009 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Trying to run an inferior lisp program on Windows 7, with the value of inferior-lisp-program set to "D:/More Program Files (x86)/clisp-2.49/clisp.exe", caused an error with error message: "Spawning child process: invalid argument" The reason is that the function inferior-lisp (defined in inf-lisp.el) calls the function split-string, whose arg SEPARATORS defaults to "[ \f\t\n\r\v]+". But Microsoft Windows allows spaces in filenames (as in the inferior-lisp-program filename given above). I patched this to check if we're on Windows-nt, and if so, to call split-string with SEPARATORS bound to "[\f\t\n\r\v]+". (no space) (defun inferior-lisp (cmd) "Run an inferior Lisp process, input and output via buffer `*inferior-lisp*'. If there is a process already running in `*inferior-lisp*', just switch to that buffer. With argument, allows you to edit the command line (default is value of `inferior-lisp-program'). Runs the hooks from `inferior-lisp-mode-hook' (after the `comint-mode-hook' is run). \(Type \\[describe-mode] in the process buffer for a list of commands.)" (interactive (list (if current-prefix-arg (read-string "Run lisp: " inferior-lisp-program) inferior-lisp-program))) (if (not (comint-check-proc "*inferior-lisp*")) (let ((cmdlist (if (equal system-type 'windows-nt) (split-string cmd "[\f\t\n\r\v]+") ; SDL: Windows allows spaces in filenames (split-string cmd) ))) (set-buffer (apply (function make-comint) "inferior-lisp" (car cmdlist) nil (cdr cmdlist))) (inferior-lisp-mode))) (setq inferior-lisp-buffer "*inferior-lisp*") (pop-to-buffer-same-window "*inferior-lisp*")) In GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601) of 2013-03-17 on MARVIN Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --with-gcc (4.7) --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include -ID:/devel/emacs/libs/libiconv-1.13.1-1-dev/include -ID:/devel/emacs/libs/libxml2-2.7.8/include/libxml2' Important settings: value of $LANG: ENU locale-coding-system: cp1252 default enable-multibyte-characters: t Major mode: Info Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Recent input: C-x o C-x b i n f - l i s SPC - w i n SPC p a SPC SPC i f SPC ( e q u a l SPC s y s t e m - t y p e SPC " w i n d o w s - n t " C-e C-p ) C-n C-a C-e C-b C-b C-j C-p C-f C-f C-f C-b ( C-a C-n C-a C-p C-e C-j ( s p l i t - s t r i n g SPC c m d ) ; SPC W i n d o w s SPC a l l o w s SPC b l a n k s SPC i n SPC f i l e n a m e s s p a c e C-x s y y C-h ? C-p C-x 1 C-h i m e m a c s SPC SPC x r e p o e r r t - = e e m a c s = b i g - b u g Recent messages: Quit Making completion list... Type C-x 1 to delete the help window. Saving file d:/More Program Files/Shareware/emacs-24.3/lisp/progmodes/inf-lisp-windows-patch.el... Wrote d:/More Program Files/Shareware/emacs-24.3/lisp/progmodes/inf-lisp-windows-patch.el Saving file d:/More Program Files/Shareware/emacs-24.3/lisp/progmodes/inf-lisp.el... Wrote d:/More Program Files/Shareware/emacs-24.3/lisp/progmodes/inf-lisp.el View mode: type C-h for help, h for commands, q to quit. Composing main Info directory...done Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums info goto-addr thingatpt noutline outline easy-mmode view mule-util debug apropos pp find-func help-mode easymenu help-fns misearch multi-isearch dired-aux dired inf-lisp comint ansi-color ring gnus gnus-ems nnheader gnus-util mail-utils mm-util mail-prsvr wid-edit cus-start cus-load time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp w32-common-fns disp-table w32-win w32-vars tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process w32 multi-tty emacs) --------------010007050100010205080009 Content-Type: multipart/related; boundary="------------020709020407000607030609" --------------020709020407000607030609 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit

Trying to run an inferior lisp program on Windows 7,
with the value of inferior-lisp-program set to
"D:/More Program Files (x86)/clisp-2.49/clisp.exe",

caused an error with error message:
"Spawning child process: invalid argument"

The reason is that the function inferior-lisp (defined in inf-lisp.el)
calls the function split-string, whose arg SEPARATORS defaults to "[ \f\t\n\r\v]+".
But Microsoft Windows allows spaces in filenames (as in the
inferior-lisp-program filename given above).

I patched this to check if we're on Windows-nt, and if so, to call
split-string with SEPARATORS bound to "[\f\t\n\r\v]+".  (no space)


(defun inferior-lisp (cmd)
  "Run an inferior Lisp process, input and output via buffer `*inferior-lisp*'.
If there is a process already running in `*inferior-lisp*', just switch
to that buffer.
With argument, allows you to edit the command line (default is value
of `inferior-lisp-program').  Runs the hooks from
`inferior-lisp-mode-hook' (after the `comint-mode-hook' is run).
\(Type \\[describe-mode] in the process buffer for a list of commands.)"
  (interactive (list (if current-prefix-arg
             (read-string "Run lisp: " inferior-lisp-program)
               inferior-lisp-program)))
  (if (not (comint-check-proc "*inferior-lisp*"))
      (let ((cmdlist (if (equal system-type 'windows-nt)
             (split-string cmd "[\f\t\n\r\v]+") ; SDL: Windows allows spaces in filenames
               (split-string cmd)
               )))
    (set-buffer (apply (function make-comint)
               "inferior-lisp" (car cmdlist) nil (cdr cmdlist)))
    (inferior-lisp-mode)))
  (setq inferior-lisp-buffer "*inferior-lisp*")
  (pop-to-buffer-same-window "*inferior-lisp*"))






In GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601)
 of 2013-03-17 on MARVIN
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --with-gcc (4.7) --cflags
 -ID:/devel/emacs/libs/libXpm-3.5.8/include
 -ID:/devel/emacs/libs/libXpm-3.5.8/src
 -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include
 -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include
 -ID:/devel/emacs/libs/giflib-4.1.4-1/include
 -ID:/devel/emacs/libs/jpeg-6b-4/include
 -ID:/devel/emacs/libs/tiff-3.8.2-1/include
 -ID:/devel/emacs/libs/gnutls-3.0.9/include
 -ID:/devel/emacs/libs/libiconv-1.13.1-1-dev/include
 -ID:/devel/emacs/libs/libxml2-2.7.8/include/libxml2'

Important settings:
  value of $LANG: ENU
  locale-coding-system: cp1252
  default enable-multibyte-characters: t

Major mode: Info

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<help-echo> <help-echo> <help-echo> <help-echo> C-x
o C-x b i n f - l i s SPC - w i n SPC p a SPC SPC <return>
<down-mouse-1> <mouse-1> i f SPC ( e q u a l SPC s
y s t e m - t y p e SPC " w i n d o w s - n t " <return>
<tab> C-e C-p ) C-n C-a <tab> C-e C-b C-b C-j <tab>
C-p C-f C-f C-f C-b ( C-a <tab> C-n C-a <tab> C-p C-e
C-j ( s p l i t - s t r i n g SPC c m d ) <down-mouse-1>
<mouse-1> <down-mouse-1> <mouse-1> <escape> ; SPC W
i n d o w s SPC a l l o w s SPC b l a n k s SPC i n
SPC f i l e n a m e s <left> <left> <left> <left> <left>
<left> <left> <left> <left> <left> <left> <left> <left>
<left> <backspace> <backspace> <backspace> <backspace>
<backspace> s p a c e C-x s y y <help-echo> <help-echo>
<help-echo> <down-mouse-1> <mouse-1> C-h ? <help-echo>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> C-p <mouse-1> <down-mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <help-echo> <down-mouse-1>
<mouse-1> C-x 1 C-h i m e m a c s <return> SPC SPC
<help-echo> <down-mouse-1> <mouse-2> <help-echo> <help-echo>
<down-mouse-1> <mouse-2> <mouse-1> <help-echo> <help-echo>
<help-echo> <tool-bar> <Back in history> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <down-mouse-1>
<mouse-2> <escape> x r e p o e r <backspace> <backspace>
r t - = e <backspace> <backspace> e m a c s = b i g
<backspace> <backspace> <backspace> <backspace> - b
u g <return>

Recent messages:

Quit
Making completion list...
Type C-x 1 to delete the help window.
Saving file d:/More Program Files/Shareware/emacs-24.3/lisp/progmodes/inf-lisp-windows-patch.el...
Wrote d:/More Program Files/Shareware/emacs-24.3/lisp/progmodes/inf-lisp-windows-patch.el
Saving file d:/More Program Files/Shareware/emacs-24.3/lisp/progmodes/inf-lisp.el...
Wrote d:/More Program Files/Shareware/emacs-24.3/lisp/progmodes/inf-lisp.el
View mode: type C-h for help, h for commands, q to quit.
Composing main Info directory...done

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message format-spec rfc822 mml mml-sec
mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader sendmail rfc2047 rfc2045 ietf-drums info goto-addr thingatpt
noutline outline easy-mmode view mule-util debug apropos pp find-func
help-mode easymenu help-fns misearch multi-isearch dired-aux dired
inf-lisp comint ansi-color ring gnus gnus-ems nnheader gnus-util
mail-utils mm-util mail-prsvr wid-edit cus-start cus-load time-date
tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp
w32-common-fns disp-table w32-win w32-vars tool-bar dnd fontset image
regexp-opt fringe tabulated-list newcomment lisp-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process w32 multi-tty emacs)
 

 

 

 

 

 

--------------020709020407000607030609 Content-Type: image/gif; name="C:\\Users\\Steven\\My Templates\\Thunderbird\\yellow-spine.gif" Content-Transfer-Encoding: base64 Content-ID: Content-Disposition: inline; filename*0="C:\\Users\\Steven\\My Templates\\Thunderbird\\yellow-spine.g"; filename*1="if" R0lGODlhuAsQAPcAAP///uLNMf/+/P///eTQPf7++/7++v388v799+7iiOTRQP79+eXRQ/r2 2Pj0z/bwwOfWVPr11u/kkPfyxeLOM+fVUvjzzO7hhvTts/jzzfLnn+LPNvPrrv389PXuuvz6 6PTtsf79+P/+/fXvvfv44/799fz77ePQOu/ii/377+3hf/Loovv43/HmmOrbbObVT/Dlk+vd c+naZ/n00+jXW/bwvufWV+fUUOrbau7hgu3hhOnaZv799vr22/n11+/kj/fyx/j00fPrrPfw wuXSSezfefLnnuvbbunZYunYYPz77uvdceXSRf388/fyyerZZPPqquvedPXut/buu/XttvTs sPLppO3gfuLONeXTSvr22uzed/z66fv44vDllOPPOOLPOOfWVf388O3fe+PNMu/jjfr33vn1 1ObUTffzyvfwxPv34fz67Pz66/v55vLmm/HnmvPppfz55+TSQeXSR/7++fr33ejXXvLqp+fX Wv///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAAuAsQAAAI/gADCAxAhgKWDV/AnCBAQMEc BkzoEMmC5sWNChDC2MhD404SJE92yMDh4siSGFG2FBlzRUUOHRcSoCjzQwIMLy3gvDGiYYWV OHigCOFQBQQGKlI8TBlR48EQNROAOEljIYODIDPORPDRQEsPO2ZYrOlCwo2cD1zasDGhJIWY AweadCjBAwGCEAvqGDBQoICAvyIGDABAuLCew4gTK17MuLHjx5AjS55MubLly5gza97MubPn z6BDix5NurTp06hTq17NurXr17Bjy55Nu7bt27hz697Nu7fv38CDCx9OvLjx48iTK1/OvLnz 59AjDyRoEKFChg4hSqRoEaNGjh5B/ookaRKlSpYuYcqkaROnTp4+gQolahSpUqZOoUqlahWr Vq5egSUWWWahpRZbbsElF1124aUXX34BJlhhhkVn4YUYZqjhhhx26OGHIIYo4ogklmjiiSim qOKKLLbo4oswxijjjK1NV9BBCS3U0EMRTVTRRRlt1NFHIY1U0kkprdTSSzHNVNNNOe3U009B DVXUUUkt1dRTUU1V1VVZbdXVV2GNVdZZaa3V1ltxzVXXXXnt1ddfAgQ2GIUA0Kjnnnz26eef gAYq6KCEFmrooYgmquiijDbq6KOQXmZjdTlix+N2P3onZHhFkofkeUuq52R7UcJH5XxX2qdl fl3yB+Z//mMKaGaBaSLI5oJvOihnhHVOiGekwAYr7LDEFmvsscgmq+yyzDbr7LPQRittbpPi eN2O2vnYXZDgETnekeYpmV6T7EH53pTyWVlflvhxud+X/okZYJkEonngmgq62WCcENJpJ555 TivwwAQXbPDBCCes8MIMN+zwwxBHjHC11umYXY/cAfndkOIZWV6S6DG53pPuSRlflfRhed+W +nnZX5gAkjngmQaqmWCbDML54JwS3kmhxEAHLfTQRBdt9NFIJ6300kw37fRuFFeKLcaZcstx p+CCHCq5JJeKLsqpsstyq/DCHCu9NNeKL8658stzrz5X+PTcdNdt99145633/t589+3333tH fe3FmG67MafffgzquCOTeu7JqK67MqvvvgzrvDPTeu/NuO67M6///gr46KSXbvrpqKeu+uqs t+5664JbfKm2Gm/qrcefiivyqOaafKq6Kq/qrsuvyivzrPbafKu+Ou/qr68/vy799NRXb/31 2Gev/fbcd1/jQDdWbGm2GWvabceehhuyqOWWbGq6KavabsuuxhuzrPXWbGu+Oevab88A854A B0jAAhrwgAhMoAIXyEA9xW58VDOc7dCXtcXtrn1egxzw5De2yhXvfmjTnPL417bPPS9uhGmg ClfIwha68IUwjKEMZ/i6B06tcLU7H9YUpzv2de1x7L+Ln9goRzz7nS1zydsf2zznPACKjoZQ jKIUp0jFKlrxiljMYohsSDjame9qicvd+rjmON/BL2yTG179zIY55OlvbZ1r3v/gFkAt2vGO eMyjHvfIxz76sYFcnF35rIY43Klva43r3fvAJjnh0a9slzte/tTGOeb5722hi94fN8nJTnry k6AMpShHOaxAkq9qh7td+rTGON6572uRC978yGY54+EvbZtbXv/cBjroyY2UwAymMIdJzGIa 85jIPI0pI5hDMBqSlRf8oRkZKcsOFpGNksTlCJcoR0z6MoXJDKc4x0nOcprznOhUYEAAADs= --------------020709020407000607030609-- --------------010007050100010205080009-- From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 30 17:12:22 2013 Received: (at 16005) by debbugs.gnu.org; 30 Nov 2013 22:12:22 +0000 Received: from localhost ([127.0.0.1]:52126 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vmslx-00080M-9c for submit@debbugs.gnu.org; Sat, 30 Nov 2013 17:12:21 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:48467 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vmslt-00080B-Ua for 16005@debbugs.gnu.org; Sat, 30 Nov 2013 17:12:19 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Vmslt-0003K7-2o; Sat, 30 Nov 2013 17:12:17 -0500 From: Glenn Morris To: Steven Litvintchouk Subject: Re: bug#16005: 24.3; function inferior-lisp needs patch to work with certain filenames in Windows-NT References: <5298F8AD.5020606@earthlink.net> X-Spook: rs9512c Aladdin csystems weapons of mass destruction X-Ran: i6O[!`y2(Rz3`@$Cdwb6LCW(.C/OpIjbFd/lq#d)cz"`;fvV%G8nDSz{(QAz>b-SVE/w&[ X-Hue: blue X-Debbugs-No-Ack: yes X-Attribution: GM Date: Sat, 30 Nov 2013 17:12:16 -0500 In-Reply-To: <5298F8AD.5020606@earthlink.net> (Steven Litvintchouk's message of "Fri, 29 Nov 2013 15:27:25 -0500") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 16005 Cc: 16005@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Steven Litvintchouk wrote: > But Microsoft Windows allows spaces in filenames I think every platform that Emacs supports allows spaces in filenames; just that people on non-MS Windows platforms generally know to avoid such filenames. ;) > I patched this to check if we're on Windows-nt, and if so, to call > split-string with SEPARATORS bound to "[\f\t\n\r\v]+" That doesn't work, consider eg /bin/lisp --some-arg versus /Program Files/lisp From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 30 17:18:29 2013 Received: (at control) by debbugs.gnu.org; 30 Nov 2013 22:18:29 +0000 Received: from localhost ([127.0.0.1]:52138 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vmsrs-0008Bf-SG for submit@debbugs.gnu.org; Sat, 30 Nov 2013 17:18:29 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:48562 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vmsrr-0008BQ-5Q for control@debbugs.gnu.org; Sat, 30 Nov 2013 17:18:27 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Vmsrq-00047r-Ju for control@debbugs.gnu.org; Sat, 30 Nov 2013 17:18:26 -0500 Date: Sat, 30 Nov 2013 17:18:26 -0500 Message-Id: Subject: control message for bug 16005 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) retitle 16005 inferior-lisp and filenames with spaces From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 15 01:33:45 2021 Received: (at 16005) by debbugs.gnu.org; 15 Jul 2021 05:33:45 +0000 Received: from localhost ([127.0.0.1]:46310 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3u0H-0007Xk-BH for submit@debbugs.gnu.org; Thu, 15 Jul 2021 01:33:45 -0400 Received: from quimby.gnus.org ([95.216.78.240]:52344) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3u0E-0007XU-7m for 16005@debbugs.gnu.org; Thu, 15 Jul 2021 01:33:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ZOd3Vh0qIAKJ29morko0zvVDKa2RSRcZALgrHKKpFuc=; b=FuxcdGdJsI8s+7besctCXoFGF4 IjD1lObiPHPFZLd8EJ/As1bPrHn329oYI28PicteZUr3j+dK7Zj4aRj98N8uJt+LnsBXNRKvyDsXq B1Mc3hELU2Y7j9Agb2cMWlTuDiItwTpfurj2YsA6ulcmSZG5rIQyNtDbq+gW+XKt4QPM=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m3u05-0004H3-PH; Thu, 15 Jul 2021 07:33:36 +0200 From: Lars Ingebrigtsen To: Steven Litvintchouk Subject: Re: bug#16005: inferior-lisp and filenames with spaces References: <5298F8AD.5020606@earthlink.net> X-Now-Playing: Pet Shop Boys's _Hotspot_: "Happy people" Date: Thu, 15 Jul 2021 07:33:33 +0200 In-Reply-To: <5298F8AD.5020606@earthlink.net> (Steven Litvintchouk's message of "Fri, 29 Nov 2013 15:27:25 -0500") Message-ID: <87zguop2du.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Steven Litvintchouk writes: > Trying to run an inferior lisp program on Windows 7, > with the value of inferior-lisp-program set to > "D:/More Program Files (x86)/clisp-2.49/clisp.exe", > > caused an error with error message: > [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 16005 Cc: 16005@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Steven Litvintchouk writes: > Trying to run an inferior lisp program on Windows 7, > with the value of inferior-lisp-program set to > "D:/More Program Files (x86)/clisp-2.49/clisp.exe", > > caused an error with error message: > "Spawning child process: invalid argument" > > The reason is that the function inferior-lisp (defined in inf-lisp.el) > calls the function split-string, whose arg SEPARATORS defaults to "[ \f\t\n\r\v]+". This problem is still present in Emacs 28: (interactive (list (if current-prefix-arg (read-string "Run lisp: " inferior-lisp-program) inferior-lisp-program))) (if (not (comint-check-proc "*inferior-lisp*")) (let ((cmdlist (split-string cmd))) (set-buffer (apply (function make-comint) "inferior-lisp" (car cmdlist) nil (cdr cmdlist))) (inferior-lisp-mode))) The only way this could work is that if we either split the prompt into two parts (one for the command and one for the options), or that we require that the user quotes the spaces, and then use a splitting function that's aware of that. So the user would have to type "D:/More Program Files (x86)/clisp-2.49/clisp.exe" -some -option or the like. I thought Emacs had a shell-syntax-aware splitting function (that would tokenise that into a list of three items), but I can't find it now... anybody remember what it's called (if we do have it)? I.e., (that-func "\"foo bar\" zot") => ("foo bar" "zot") and (that-func "foo\\ bar zot") => ("foo bar" "zot") -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 15 01:33:50 2021 Received: (at control) by debbugs.gnu.org; 15 Jul 2021 05:33:50 +0000 Received: from localhost ([127.0.0.1]:46313 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3u0M-0007Y3-JW for submit@debbugs.gnu.org; Thu, 15 Jul 2021 01:33:50 -0400 Received: from quimby.gnus.org ([95.216.78.240]:52358) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3u0L-0007Xi-Au for control@debbugs.gnu.org; Thu, 15 Jul 2021 01:33:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ibXRUr4FwQpQL68UgNc4m+RjkoYoC+qpy7huWRXVPRw=; b=eapNOWY/gOFG9o5Mxou4mAiAWd nw84r7835+EF9JvX22hMUvW93vEkDxmfoEu1Kg8gyFxquXHzSydiw4k38dXBP1mFuPv9m03sYSCcO EG0l4SOyqqZ7gK34fQqfZZyK+SKJwgxU0HvrEhxSnkjZuqPgiT+j1l8m1AxwWVNaTJNU=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m3u0D-0004HC-NX for control@debbugs.gnu.org; Thu, 15 Jul 2021 07:33:43 +0200 Date: Thu, 15 Jul 2021 07:33:40 +0200 Message-Id: <87y2a8p2dn.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #16005 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 16005 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 16005 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 15 02:59:25 2021 Received: (at 16005) by debbugs.gnu.org; 15 Jul 2021 06:59:25 +0000 Received: from localhost ([127.0.0.1]:46600 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3vLA-0003pV-PA for submit@debbugs.gnu.org; Thu, 15 Jul 2021 02:59:25 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33602) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3vL8-0003pF-GV for 16005@debbugs.gnu.org; Thu, 15 Jul 2021 02:59:22 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:38786) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3vL3-0004xD-2M; Thu, 15 Jul 2021 02:59:17 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1183 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3vKy-0004Qj-Us; Thu, 15 Jul 2021 02:59:17 -0400 Date: Thu, 15 Jul 2021 09:58:56 +0300 Message-Id: <83czrk6p1r.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-Reply-To: <87zguop2du.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 15 Jul 2021 07:33:33 +0200) Subject: Re: bug#16005: inferior-lisp and filenames with spaces References: <5298F8AD.5020606@earthlink.net> <87zguop2du.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 16005 Cc: 16005@debbugs.gnu.org, sdlitvin@earthlink.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Lars Ingebrigtsen > Date: Thu, 15 Jul 2021 07:33:33 +0200 > Cc: 16005@debbugs.gnu.org > > Steven Litvintchouk writes: > > > Trying to run an inferior lisp program on Windows 7, > > with the value of inferior-lisp-program set to > > "D:/More Program Files (x86)/clisp-2.49/clisp.exe", > > > > caused an error with error message: > > "Spawning child process: invalid argument" > > > > The reason is that the function inferior-lisp (defined in inf-lisp.el) > > calls the function split-string, whose arg SEPARATORS defaults to "[ \f\t\n\r\v]+". > > This problem is still present in Emacs 28: > > (interactive (list (if current-prefix-arg > (read-string "Run lisp: " inferior-lisp-program) > inferior-lisp-program))) > (if (not (comint-check-proc "*inferior-lisp*")) > (let ((cmdlist (split-string cmd))) > (set-buffer (apply (function make-comint) > "inferior-lisp" (car cmdlist) nil (cdr cmdlist))) > (inferior-lisp-mode))) > > The only way this could work is that if we either split the prompt into > two parts (one for the command and one for the options), or that we > require that the user quotes the spaces, and then use a splitting > function that's aware of that. So the user would have to type > > "D:/More Program Files (x86)/clisp-2.49/clisp.exe" -some -option > > or the like. If we prompt the users for a shell command, we should expect the users to quote it as they would when they type at the shell's prompt. is this prompt for the complete shell command, or is it only for the name of the program's executable file? If the latter, we should run the result through shell-quote-argument before using it; if the former, the user should do the quoting, and there's no bug in Emacs. From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 15 03:10:43 2021 Received: (at 16005) by debbugs.gnu.org; 15 Jul 2021 07:10:43 +0000 Received: from localhost ([127.0.0.1]:46612 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3vW7-0006JN-AC for submit@debbugs.gnu.org; Thu, 15 Jul 2021 03:10:43 -0400 Received: from quimby.gnus.org ([95.216.78.240]:53670) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3vW6-0006JB-3Q for 16005@debbugs.gnu.org; Thu, 15 Jul 2021 03:10:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=z2S45FzYfSrio7QZtvFo/14wx38N3qMzgiVFLRPw8WE=; b=elG2KmjlWG+W5rvcmUX0wU9H4B q8PR2oTIMvLFf6c0YdC9cA5CaDpo0SIgaiYp0CKGCpblWKCVCoUo0TND8jUAoQYyzK86kC6ONKfnX YMXhUfmJncrKz0HQXk26+7iXBO/EQaF0/e7QFng6HX6QmqLfuwc1YZBWtE38LHVP2QKs=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m3vVx-0005ET-OF; Thu, 15 Jul 2021 09:10:36 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#16005: inferior-lisp and filenames with spaces References: <5298F8AD.5020606@earthlink.net> <87zguop2du.fsf@gnus.org> <83czrk6p1r.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAG1BMVEWFEReKKiilnJGS WVRyDxNgIx4qJR56hHn///9MMD0NAAAAAWJLR0QIht6VegAAAAd0SU1FB+UHDwcICzpaqdIAAAGU SURBVDjLddHBUuMwDAZgZUju0TbhAWCmPZelu1czyD3HOM6dqWMegAOvj2S7JS6pD53WX35JUQHK g/HAn0eADe6vAeDuAeDpgT9qle4rh9hCgs1ffgKGDCjQJoiPnBO4kUoR0skAhqH6DVWLsdbvBBpc LyUAqVS+cTxyrVTjuQUuYVJ0DN40I0O7hKPSIcxDbzoZaglDwwD3JvYWIEXyrfF1CD5thCOvDEQS qgOXer+fGZAXlyBGjkHOUGFbldDI/dzKFutLKTonnJKN1KBygpsogdm2e1nJpRQXUxPDZJ1ssf0B UDxsOAX3abCrgH4SsVI4/ft8R6j59wVojtN+nSwiFTDGxO602SO9LEAPU4zMThKwAr0xRPUCKN4H ezCu6DHlwMejNgWMCUL4r/sS8v3But4V4NPavdVuDbbe9lc9xnOiH8s3dwIf28EeSnCjTn+t7Yi6 AtIbDq/PVCR0BnLPssMF+Ay64/WUCenuBa5LcWSWwUuIGMZ1oBDnW4G8g1XQ+gbQRLdKZdjdgLft Ouin8A0rqO3Ehwu7/gAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMS0wNy0xNVQwNzowODoxMSswMDow MKgM0qoAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEtMDctMTVUMDc6MDg6MTErMDA6MDDZUWoWAAAA AElFTkSuQmCC X-Now-Playing: Privacy's _Fabric 94: Steffi_: "Broke" Date: Thu, 15 Jul 2021 09:10:33 +0200 In-Reply-To: <83czrk6p1r.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 15 Jul 2021 09:58:56 +0300") Message-ID: <877dhsm4ra.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: >> (let ((cmdlist (split-string cmd))) >> (set-buffer (apply (function make-comint) >> "inferior-lisp" (car cmdlist) nil (cdr cmdlist))) [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 16005 Cc: 16005@debbugs.gnu.org, sdlitvin@earthlink.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Eli Zaretskii writes: >> (let ((cmdlist (split-string cmd))) >> (set-buffer (apply (function make-comint) >> "inferior-lisp" (car cmdlist) nil (cdr cmdlist))) [...] > If we prompt the users for a shell command, we should expect the users > to quote it as they would when they type at the shell's prompt. is > this prompt for the complete shell command, or is it only for the name > of the program's executable file? If the latter, we should run the > result through shell-quote-argument before using it; if the former, > the user should do the quoting, and there's no bug in Emacs. It's the former. The problem is that there is no way for the user to quote the command, since we do a `split-string' on what they typed in before executing it. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 15 03:25:46 2021 Received: (at 16005) by debbugs.gnu.org; 15 Jul 2021 07:25:46 +0000 Received: from localhost ([127.0.0.1]:46630 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3vkg-0006hJ-AK for submit@debbugs.gnu.org; Thu, 15 Jul 2021 03:25:46 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37328) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3vkf-0006h5-42 for 16005@debbugs.gnu.org; Thu, 15 Jul 2021 03:25:45 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:39334) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3vkY-00027r-Tp; Thu, 15 Jul 2021 03:25:39 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2791 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3vkU-0002I7-8W; Thu, 15 Jul 2021 03:25:37 -0400 Date: Thu, 15 Jul 2021 10:25:19 +0300 Message-Id: <838s286nts.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-Reply-To: <877dhsm4ra.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 15 Jul 2021 09:10:33 +0200) Subject: Re: bug#16005: inferior-lisp and filenames with spaces References: <5298F8AD.5020606@earthlink.net> <87zguop2du.fsf@gnus.org> <83czrk6p1r.fsf@gnu.org> <877dhsm4ra.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 16005 Cc: 16005@debbugs.gnu.org, sdlitvin@earthlink.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Lars Ingebrigtsen > Cc: sdlitvin@earthlink.net, 16005@debbugs.gnu.org > Date: Thu, 15 Jul 2021 09:10:33 +0200 > > Eli Zaretskii writes: > > >> (let ((cmdlist (split-string cmd))) > >> (set-buffer (apply (function make-comint) > >> "inferior-lisp" (car cmdlist) nil (cdr cmdlist))) > > [...] > > > If we prompt the users for a shell command, we should expect the users > > to quote it as they would when they type at the shell's prompt. is > > this prompt for the complete shell command, or is it only for the name > > of the program's executable file? If the latter, we should run the > > result through shell-quote-argument before using it; if the former, > > the user should do the quoting, and there's no bug in Emacs. > > It's the former. The problem is that there is no way for the user to > quote the command, since we do a `split-string' on what they typed in > before executing it. Then how about using split-string-and-unquote instead of split-string? From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 15 03:30:44 2021 Received: (at 16005) by debbugs.gnu.org; 15 Jul 2021 07:30:44 +0000 Received: from localhost ([127.0.0.1]:46653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3vpU-0006qy-HV for submit@debbugs.gnu.org; Thu, 15 Jul 2021 03:30:44 -0400 Received: from quimby.gnus.org ([95.216.78.240]:53828) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3vpT-0006ql-53 for 16005@debbugs.gnu.org; Thu, 15 Jul 2021 03:30:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=qQj4wgtyj+MER8MV/lobeexBxeawT/mqWGOTMvear+s=; b=lm4oA0DSjEqE/KWFgexVIpAc85 Zqi2qH97LCYiUNiym0m3m6peSWsUvvYgomsD2iGOu2UMiIIS3L6+3PKdpzM/B7qQucyuFHYelJNL6 SvniGBsFwI36BxW8ivtIUqsL5YlsOs2ZoIZEvGjKFPooQDZqTGfNefzoGRG+fD9vP4Jg=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m3vpK-0005QR-JG; Thu, 15 Jul 2021 09:30:37 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#16005: inferior-lisp and filenames with spaces References: <5298F8AD.5020606@earthlink.net> <87zguop2du.fsf@gnus.org> <83czrk6p1r.fsf@gnu.org> <877dhsm4ra.fsf@gnus.org> <838s286nts.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAIVBMVEUHBgQhHRcmIhtj WU9vZFlYT0YzLSZLQjqGe3JEPDP///+xykQdAAAAAWJLR0QKaND0VgAAAAlwSFlzAAAK8AAACvAB Qqw0mAAAAAd0SU1FB+UHDwccBIRLYxYAAAEMSURBVDjLvZOxasNADIalgA3dJKeQNb6hWU1osocS 6FgoGbo1Ga5kDvET5AW6FPq2uTub+KTzDR0aDeas75d0kmWA/zACHvezqZlSP7MhwDrxIzs1EnKi r7osVaLvpUga3GJzQFbB4Z4yF2cAxiBuMgaiOudAdKkE4O2lzgBVnP4OgIa0MYAAGg2gBxvdbD9R fNMAunMZAMqZ+GfhwUR8jwigEREhVdEs3Kb4NVJW7F4vNOzFYNPnl/NGgi74fXVcPn4KEGqU29P6 CUn24UWTj4Pdz8UQu5GWrVOzWsUAvl3T+kZeVx54706KOOVDy3XSmxfOWkMpcPb1kwPWjLkBf+18 FIC14379l93BrgCCGkwpEGsWAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTA3LTE1VDA3OjI4OjA0 KzAwOjAwbvJEUgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0wNy0xNVQwNzoyODowNCswMDowMB+v /O4AAAAASUVORK5CYII= X-Now-Playing: Mr. Jones's _Sounds For The Mute_: "Reversible" Date: Thu, 15 Jul 2021 09:30:34 +0200 In-Reply-To: <838s286nts.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 15 Jul 2021 10:25:19 +0300") Message-ID: <87y2a8kp9h.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: > Then how about using split-string-and-unquote instead of split-string? That would be an improvement, certainly. It'd take care of "\"foo bar\" zot". However, it doesn't do "foo\\ bar zot", and both are equivalent in shells. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 16005 Cc: 16005@debbugs.gnu.org, sdlitvin@earthlink.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Eli Zaretskii writes: > Then how about using split-string-and-unquote instead of split-string? That would be an improvement, certainly. It'd take care of "\"foo bar\" zot". However, it doesn't do "foo\\ bar zot", and both are equivalent in shells. Which is why I wondered whether we had a function to split based on shell(ish) syntax, which would be the optimal solution here... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 15 03:45:35 2021 Received: (at 16005) by debbugs.gnu.org; 15 Jul 2021 07:45:35 +0000 Received: from localhost ([127.0.0.1]:46696 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3w3r-0007Er-9O for submit@debbugs.gnu.org; Thu, 15 Jul 2021 03:45:35 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41042) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3w3p-0007Ed-Bm for 16005@debbugs.gnu.org; Thu, 15 Jul 2021 03:45:33 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:39746) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3w3j-0002VY-QM; Thu, 15 Jul 2021 03:45:27 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4008 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3w3b-0003e3-9P; Thu, 15 Jul 2021 03:45:27 -0400 Date: Thu, 15 Jul 2021 10:45:05 +0300 Message-Id: <835yxc6mwu.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-Reply-To: <87y2a8kp9h.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 15 Jul 2021 09:30:34 +0200) Subject: Re: bug#16005: inferior-lisp and filenames with spaces References: <5298F8AD.5020606@earthlink.net> <87zguop2du.fsf@gnus.org> <83czrk6p1r.fsf@gnu.org> <877dhsm4ra.fsf@gnus.org> <838s286nts.fsf@gnu.org> <87y2a8kp9h.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 16005 Cc: 16005@debbugs.gnu.org, sdlitvin@earthlink.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Lars Ingebrigtsen > Cc: sdlitvin@earthlink.net, 16005@debbugs.gnu.org > Date: Thu, 15 Jul 2021 09:30:34 +0200 > > Eli Zaretskii writes: > > > Then how about using split-string-and-unquote instead of split-string? > > That would be an improvement, certainly. It'd take care of > "\"foo bar\" zot". However, it doesn't do "foo\\ bar zot", and both are > equivalent in shells. Users will have to use quoting "like this". We can document that. It's a relatively rare use case, so I don't think the partial support for quoting is such a bad idea. > Which is why I wondered whether we had a function to split based on > shell(ish) syntax, which would be the optimal solution here... I think split-string-and-unquote is the only one that comes close. If someone wants to emulate the shells we support, patches are welcome (and then there will still be the problem to know the exact shell which is being targeted in each use case). From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 15 04:00:35 2021 Received: (at 16005) by debbugs.gnu.org; 15 Jul 2021 08:00:35 +0000 Received: from localhost ([127.0.0.1]:46705 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3wIM-0007cP-Q2 for submit@debbugs.gnu.org; Thu, 15 Jul 2021 04:00:35 -0400 Received: from quimby.gnus.org ([95.216.78.240]:54042) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3wIK-0007cB-QW for 16005@debbugs.gnu.org; Thu, 15 Jul 2021 04:00:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=yMTocUDKCgsalAsYtShBrlFDqk+pJc6V/Ne3olGH9Wc=; b=lVgl4u34ZkFt1fnKFv/3PhQdh2 xn0MKs3U016debSvV4HelEUnhmqTH+YC0VXmOmz+VBAIRReyGtYjKYWCfP1blVZ9izkUn09NCPrww 2aR0nwH5d4X0TNXezI3jHUOmTZr7Xs16T8AwMXOrc4bwhqboyAfZsaKB2FplF8YEl1Qk=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m3wIB-0005iG-Iz; Thu, 15 Jul 2021 10:00:26 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#16005: inferior-lisp and filenames with spaces References: <5298F8AD.5020606@earthlink.net> <87zguop2du.fsf@gnus.org> <83czrk6p1r.fsf@gnu.org> <877dhsm4ra.fsf@gnus.org> <838s286nts.fsf@gnu.org> <87y2a8kp9h.fsf@gnus.org> <835yxc6mwu.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAIVBMVEUHBgQhHRcmIhtj WU9vZFlYT0YzLSZLQjqGe3JEPDP///+xykQdAAAAAWJLR0QKaND0VgAAAAlwSFlzAAAK8AAACvAB Qqw0mAAAAAd0SU1FB+UHDwccBIRLYxYAAAEMSURBVDjLvZOxasNADIalgA3dJKeQNb6hWU1osocS 6FgoGbo1Ga5kDvET5AW6FPq2uTub+KTzDR0aDeas75d0kmWA/zACHvezqZlSP7MhwDrxIzs1EnKi r7osVaLvpUga3GJzQFbB4Z4yF2cAxiBuMgaiOudAdKkE4O2lzgBVnP4OgIa0MYAAGg2gBxvdbD9R fNMAunMZAMqZ+GfhwUR8jwigEREhVdEs3Kb4NVJW7F4vNOzFYNPnl/NGgi74fXVcPn4KEGqU29P6 CUn24UWTj4Pdz8UQu5GWrVOzWsUAvl3T+kZeVx54706KOOVDy3XSmxfOWkMpcPb1kwPWjLkBf+18 FIC14379l93BrgCCGkwpEGsWAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTA3LTE1VDA3OjI4OjA0 KzAwOjAwbvJEUgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0wNy0xNVQwNzoyODowNCswMDowMB+v /O4AAAAASUVORK5CYII= X-Now-Playing: Mr. Jones's _Sounds For The Mute_: "Continuous Sounds" Date: Thu, 15 Jul 2021 10:00:23 +0200 In-Reply-To: <835yxc6mwu.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 15 Jul 2021 10:45:05 +0300") Message-ID: <87tukwknvs.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: >> Which is why I wondered whether we had a function to split based on >> shell(ish) syntax, which would be the optimal solution here... > > I think split-string-and-unquote is the only one that comes [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 16005 Cc: 16005@debbugs.gnu.org, sdlitvin@earthlink.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Eli Zaretskii writes: >> Which is why I wondered whether we had a function to split based on >> shell(ish) syntax, which would be the optimal solution here... > > I think split-string-and-unquote is the only one that comes close. If > someone wants to emulate the shells we support, patches are welcome > (and then there will still be the problem to know the exact shell > which is being targeted in each use case). That's true. However, this reminded me that we do have pretty good completion in `M-!', so I thought we must have some tokenisation support somewhere, and indeed: `shell--parse-pcomplete-arguments' seems to fit the bill here. So adding a `shell-split-string' by wrapping that function seems like it should be possible. I'll poke some more at it; it doesn't quite seem to handle \ as expected in all circumstances. It handles "" and '' fine, as far as I can tell: 'foo"bar' zot -> (("foo\"bar" "zot") 1 11) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 15 04:20:11 2021 Received: (at 16005) by debbugs.gnu.org; 15 Jul 2021 08:20:11 +0000 Received: from localhost ([127.0.0.1]:46731 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3wbK-00086V-UA for submit@debbugs.gnu.org; Thu, 15 Jul 2021 04:20:11 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46552) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3wbJ-000869-6q for 16005@debbugs.gnu.org; Thu, 15 Jul 2021 04:20:09 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:40624) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3wbD-0006Fd-Dp; Thu, 15 Jul 2021 04:20:03 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2419 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3wbC-0002R7-OV; Thu, 15 Jul 2021 04:20:03 -0400 Date: Thu, 15 Jul 2021 11:19:45 +0300 Message-Id: <834kcw6lb2.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-Reply-To: <87tukwknvs.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 15 Jul 2021 10:00:23 +0200) Subject: Re: bug#16005: inferior-lisp and filenames with spaces References: <5298F8AD.5020606@earthlink.net> <87zguop2du.fsf@gnus.org> <83czrk6p1r.fsf@gnu.org> <877dhsm4ra.fsf@gnus.org> <838s286nts.fsf@gnu.org> <87y2a8kp9h.fsf@gnus.org> <835yxc6mwu.fsf@gnu.org> <87tukwknvs.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 16005 Cc: 16005@debbugs.gnu.org, sdlitvin@earthlink.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Lars Ingebrigtsen > Cc: sdlitvin@earthlink.net, 16005@debbugs.gnu.org > Date: Thu, 15 Jul 2021 10:00:23 +0200 > > That's true. However, this reminded me that we do have pretty good > completion in `M-!', so I thought we must have some tokenisation support > somewhere, and indeed: `shell--parse-pcomplete-arguments' seems to fit > the bill here. So adding a `shell-split-string' by wrapping that > function seems like it should be possible. I'll poke some more at it; > it doesn't quite seem to handle \ as expected in all circumstances. If that works, I'd suggest to call the function something that begins with split-string-, like split-string-shell-command or somesuch. I think this would make its discovery easier. From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 15 04:30:42 2021 Received: (at 16005) by debbugs.gnu.org; 15 Jul 2021 08:30:42 +0000 Received: from localhost ([127.0.0.1]:46754 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3wlW-0008Oc-5c for submit@debbugs.gnu.org; Thu, 15 Jul 2021 04:30:42 -0400 Received: from quimby.gnus.org ([95.216.78.240]:54438) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3wlU-0008OP-FV for 16005@debbugs.gnu.org; Thu, 15 Jul 2021 04:30:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=sraGeukQx9VcuYLFzEQmpG3DU/k7yfTWGvQ6DemwUVs=; b=op7ZtahGU33t/q/fbBxCpJxypF 9yEfj2QrYPolDi1FaXIWC2RXeRRZ5YJYt10TiS1oUvQe/h4WbdHHxkHTfhwH1Bf4IOWu8Tg6saSag c+Cl14ow3YAwsm4hnCOX8cOikMUruHvlk8cf/pzj3pTsRjMtL+RX0zK9T5BpTenPIR54=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m3wlL-00064p-9w; Thu, 15 Jul 2021 10:30:33 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#16005: inferior-lisp and filenames with spaces References: <5298F8AD.5020606@earthlink.net> <87zguop2du.fsf@gnus.org> <83czrk6p1r.fsf@gnu.org> <877dhsm4ra.fsf@gnus.org> <838s286nts.fsf@gnu.org> <87y2a8kp9h.fsf@gnus.org> <835yxc6mwu.fsf@gnu.org> <87tukwknvs.fsf@gnus.org> <834kcw6lb2.fsf@gnu.org> X-Now-Playing: John T. Gast's _Inna Babalon_: "Surman" Date: Thu, 15 Jul 2021 10:30:30 +0200 In-Reply-To: <834kcw6lb2.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 15 Jul 2021 11:19:45 +0300") Message-ID: <87pmvkkmhl.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: > If that works, It did -- I just had to wrap it in a binding for the shell escaped. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 16005 Cc: 16005@debbugs.gnu.org, sdlitvin@earthlink.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Eli Zaretskii writes: > If that works, It did -- I just had to wrap it in a binding for the shell escaped. > I'd suggest to call the function something that begins > with split-string-, like split-string-shell-command or somesuch. I > think this would make its discovery easier. Good point. I've now renamed it. So back to the original bug report -- I'll change it to use the new splitting function, and then document that it's doing so. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 15 04:33:41 2021 Received: (at control) by debbugs.gnu.org; 15 Jul 2021 08:33:41 +0000 Received: from localhost ([127.0.0.1]:46758 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3woP-0008TC-J5 for submit@debbugs.gnu.org; Thu, 15 Jul 2021 04:33:41 -0400 Received: from quimby.gnus.org ([95.216.78.240]:54458) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3woO-0008Sy-Ci for control@debbugs.gnu.org; Thu, 15 Jul 2021 04:33:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=u9CqjHQv1w3Q93ib3QAYcAvR2/CDavRplTBsXmJ84kA=; b=jS5seg9CAiGDoZZtanehuaRd1p oa74fAzZ/i69ma5IfGf+EHgxCgjOkW64xZpjCfRMFQVeiV3WM6h1t9qxWp0yfji7opppqqduxt3AZ Hb/6sQUxWqdeaSp4/1XaJEIRvyCTvdCEU9eVlyQjtMyc6/qMXGmtiwD7IYEI33DGbpRU=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m3woG-00068J-O7 for control@debbugs.gnu.org; Thu, 15 Jul 2021 10:33:34 +0200 Date: Thu, 15 Jul 2021 10:33:32 +0200 Message-Id: <87o8b4kmcj.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #16005 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 16005 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 16005 28.1 quit From unknown Thu Sep 11 18:36:44 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 12 Aug 2021 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator