From: Aki Hoji <akhst7@gmail.com>
To: zsh-users@zsh.org
Subject: unexpected EOF while looking for matching `''
Date: Sat, 11 Feb 2023 12:55:03 -0500 [thread overview]
Message-ID: <7EEC4FC0-CB69-4D96-B39A-BE5F1B8C9149@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1475 bytes --]
Hi,
I have a following bash script minor maintenance;
#!/bin/bash
brew update && brew upgrade && brew cleanup
conda update conda -y
conda update --all -y
conda clean --all -y
pip list -o | sed "1,2 d" | cut -d '\'' '\'' -f1 | xargs -n1 pip3 install -U --no-deps
pip cache purge
echo "all done for today!!”
This script used work but lately it gives me an error as follows;
(base) MacStudioAH:~ $ ./maintenance.script
Updated 2 taps (homebrew/core and homebrew/cask).
Collecting package metadata (current_repodata.json): done
Solving environment: done
# All requested packages already installed.
Collecting package metadata (current_repodata.json): done
Solving environment: done
# All requested packages already installed.
There are no unused tarball(s) to remove.
Will remove 1 index cache(s).
There are no unused package(s) to remove.
There are no tempfile(s) to remove.
There are no logfile(s) to remove.
./maintenance.script: line 7: unexpected EOF while looking for matching `''
./maintenance.script: line 11: syntax error: unexpected end of file
A culprit is “ pip list -o | sed "1,2 d" | cut -d '\'' '\'' -f1 | xargs -n1 pip3 install -U --no-deps” but I have exactly the same line in alias as follows;
(base) MacStudioAH:~ $ alias pu
pu='pip3 list -o | sed "1,2 d" |cut -d '\'' '\'' -f1 | xargs -n1 pip3 install -U --no-deps’
I’d appreciate if anybody could shed a light on this.
Thanks.
[-- Attachment #2: Type: text/html, Size: 2247 bytes --]
next reply other threads:[~2023-02-11 17:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-11 17:55 Aki Hoji [this message]
2023-02-11 18:43 ` Mikael Magnusson
2023-02-11 20:13 ` Lawrence Velázquez
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=7EEC4FC0-CB69-4D96-B39A-BE5F1B8C9149@gmail.com \
--to=akhst7@gmail.com \
--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).