From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: jonetsu Newsgroups: gmane.emacs.help Subject: eshell aliases and extra parameters Date: Tue, 18 Jun 2019 15:59:46 -0400 Message-ID: <20190618155946.21939370@mistral> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="237165"; mail-complaints-to="usenet@blaine.gmane.org" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 18 22:00:58 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hdKHq-000zYb-05 for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Jun 2019 22:00:58 +0200 Original-Received: from localhost ([::1]:33216 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdKHo-0003Ty-UV for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Jun 2019 16:00:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49054) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdKHG-0003OS-4m for help-gnu-emacs@gnu.org; Tue, 18 Jun 2019 16:00:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hdKHB-0002F3-0e for help-gnu-emacs@gnu.org; Tue, 18 Jun 2019 16:00:19 -0400 Original-Received: from pmta31.teksavvy.com ([76.10.157.38]:38208) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1hdKH4-0001rz-OZ for help-gnu-emacs@gnu.org; Tue, 18 Jun 2019 16:00:12 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2HluAB+Qgld/0Tb1BhmGgEBAQEBHwIBA?= =?us-ascii?q?QEBAwEBAQGBTgGBJwIBAQEBAWAoQl0CJSiDToQShTGMQAGOIxGLdQkBAQEhCBE?= =?us-ascii?q?BAgEBhDoEglUkOBMBAwEBAQQBAQEBBAICaRwMQgEMAYNfLD10HDsMGDRCg0KCC?= =?us-ascii?q?qwGg3WEd4FGIoEQAgEBAQEBAQGEaocEgT9AiXKFFQSLd4gylTcJghKBaYQDXIx?= =?us-ascii?q?/JwyDBIluijamEyKBWHAVgycJgVsBAQGDZoshJjCBAgEGAQEBFQgTBQUBAYM0i?= =?us-ascii?q?zYBAQ?= X-IPAS-Result: =?us-ascii?q?A2HluAB+Qgld/0Tb1BhmGgEBAQEBHwIBAQEBAwEBAQGBTgG?= =?us-ascii?q?BJwIBAQEBAWAoQl0CJSiDToQShTGMQAGOIxGLdQkBAQEhCBEBAgEBhDoEglUkO?= =?us-ascii?q?BMBAwEBAQQBAQEBBAICaRwMQgEMAYNfLD10HDsMGDRCg0KCCqwGg3WEd4FGIoE?= =?us-ascii?q?QAgEBAQEBAQGEaocEgT9AiXKFFQSLd4gylTcJghKBaYQDXIx/JwyDBIluijamE?= =?us-ascii?q?yKBWHAVgycJgVsBAQGDZoshJjCBAgEGAQEBFQgTBQUBAYM0izYBAQ?= X-IronPort-AV: E=Sophos;i="5.62,390,1554782400"; d="scan'208";a="95424222" Original-Received: from 24-212-219-68.cable.teksavvy.com (HELO mistral) ([24.212.219.68]) by smtp.teksavvy.com with ESMTP; 18 Jun 2019 15:59:46 -0400 X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 76.10.157.38 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:120971 Archived-At: Hello, I have defined an alias for eshell, which is found in .emacs/eshell/alias : alias PC17 g++ -Wall -std=c++17 -pthread $1 This works fine to compile files, such as: PC17 explicit.cc Although it does not work when an extra compile parameter is added, such as: PC17 -DEXPLICIT explicit.cc g++: fatal error: no input files It looks like $1 does not stand for any number of arguments, taking one and rejecting any others. At the regular Linux console, the just-about same (w/o the $1) alias works with extra params: alias PC17='g++ -Wall -std=c++17 -pthread % PC17 -DEXPLICIT explicit.cc Is there a way to add on-the-spot parameters in eshell w/o having to modify the eshell alias itself ? Cheers.