From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Damien Mattei Newsgroups: gmane.lisp.guile.user Subject: Re: Shelling Date: Thu, 18 Apr 2024 19:56:10 +0200 Message-ID: References: <1238226916.702419.1713458694879.ref@mail.yahoo.com> <1238226916.702419.1713458694879@mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19685"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Guile User To: Tom Whitcomb Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Thu Apr 18 19:57:16 2024 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rxW0Z-0004tn-RQ for guile-user@m.gmane-mx.org; Thu, 18 Apr 2024 19:57:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rxVzq-0004J6-5x; Thu, 18 Apr 2024 13:56:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rxVzm-0004EQ-Qj for guile-user@gnu.org; Thu, 18 Apr 2024 13:56:26 -0400 Original-Received: from mail-qt1-x82c.google.com ([2607:f8b0:4864:20::82c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rxVzl-0000Kf-5f for guile-user@gnu.org; Thu, 18 Apr 2024 13:56:26 -0400 Original-Received: by mail-qt1-x82c.google.com with SMTP id d75a77b69052e-4349685c845so7428411cf.0 for ; Thu, 18 Apr 2024 10:56:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713462983; x=1714067783; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=jrcinXFQD0q2C6gnHqabY8SGMyFnWneRGmrLFxBFE+Y=; b=T0HhTjVFWZhdDcgGwRio61jZTuesmLn+fjFmfnQ3SmBp9++r/j0tgYATc+AhYsTqjg +JesI8Ki0/4ALnmjM7QNIZJl96W6m1p2L3nO7KNCKsCwURuW8mHpggbrQiaQV1RSbZMn Bn9cSMPr1AxFtKwC5hJD6HvWOcvJ9xY6bWtXqO9rHa+6NHvuLEM20LTM4yB+vi5yzIJc N3hOORSHc0G1ALtjiMdI3eBqSqs7zw6hCU+DjuX+/hHoCKLkPz9h+eeQq70sxwhY5xNN BTa+ASMiaj9WxMdJ89HLciUqh0CrNdFjXBp/VZeO0lb6UgneI3fUo5blTnIwnDbuR0mp 2Dow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713462983; x=1714067783; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jrcinXFQD0q2C6gnHqabY8SGMyFnWneRGmrLFxBFE+Y=; b=qN1sLiV9aU/E0r6KPPp84jI+wfaDpeeD+VtmRBxF2Cip01X4S4lNZdajDZTEOhX/Ig FoWWsl8/qUMFBiHxKeVhWwqPyrBx39Q6IjkPMzlSXX8Jc9/6m4P91UQDBqQD/C0kL5gU Zar0fsvPuAwb+lXE6L4bTH3JsZCXOvFS3AKZ6jNqgEpKFD4m+CSU03NjcDIzsVWktvcs 1C3bJPJXEhEF3Kx6MtcUaF4DAkPnUrD282L+lAju3047adSjuvES3ZoAMgl85veY9Mgc ENqzIlMviKB6uzFJbx4Vt45Tq4ON/rNLbWjDmj90fKAGfObIyABCv2oyKjY9HgxPOBWS wuYA== X-Gm-Message-State: AOJu0Yw4cleeNRwj9XtpnElDbcD46Zh+kYDpQTGUQOxTzgwYf5k1j/dw fb8rRPBRi/ONQpJqK4exeMbZEsIDYC05sTzv0Hsw+FyM3MgmsgdLpVKfpD+fc6dxQboS3rS45il 4VGmoibmLVhR698irJEWHza1hLAE= X-Google-Smtp-Source: AGHT+IGphARCcZeV2OborVj6LFmzUPMgHvtmDisLc3NDfal7pJ3JvOXxkKpMvMIo1EZ2Ff7AaxDqdmuWrwu7yy1w7vQ= X-Received: by 2002:ac8:5fcc:0:b0:432:e325:2c27 with SMTP id k12-20020ac85fcc000000b00432e3252c27mr4345694qta.52.1713462983598; Thu, 18 Apr 2024 10:56:23 -0700 (PDT) In-Reply-To: <1238226916.702419.1713458694879@mail.yahoo.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::82c; envelope-from=damien.mattei@gmail.com; helo=mail-qt1-x82c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:19534 Archived-At: hello Tom, i use sometimes guile as a shell script, your file should start with: #!/usr/local/bin/guile -s !# and after the scheme code for example : (define stderr (current-error-port)) ; parse the input file from command line (define cmd-ln (command-line)) (define args (cdr cmd-ln)) (when (member "--help" options) .... etc regards, Damien On Thu, Apr 18, 2024 at 6:45=E2=80=AFPM Tom Whitcomb via General Guile rela= ted discussions wrote: > Hi. > I need to write a set of shell scripts and I would really like to do it > with a lisp. Is that a use case for guile or should I move towards > scheme/scsh? > Tom >