* unexpected EOF while looking for matching `''
@ 2023-02-11 17:55 Aki Hoji
2023-02-11 18:43 ` Mikael Magnusson
0 siblings, 1 reply; 3+ messages in thread
From: Aki Hoji @ 2023-02-11 17:55 UTC (permalink / raw)
To: zsh-users
[-- 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 --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: unexpected EOF while looking for matching `''
2023-02-11 17:55 unexpected EOF while looking for matching `'' Aki Hoji
@ 2023-02-11 18:43 ` Mikael Magnusson
2023-02-11 20:13 ` Lawrence Velázquez
0 siblings, 1 reply; 3+ messages in thread
From: Mikael Magnusson @ 2023-02-11 18:43 UTC (permalink / raw)
To: Aki Hoji; +Cc: zsh-users
On 2/11/23, Aki Hoji <akhst7@gmail.com> wrote:
> Hi,
>
> I have a following bash script minor maintenance;
>
> #!/bin/bash
This is zsh-users, try a bash mailing list.
--
Mikael Magnusson
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: unexpected EOF while looking for matching `''
2023-02-11 18:43 ` Mikael Magnusson
@ 2023-02-11 20:13 ` Lawrence Velázquez
0 siblings, 0 replies; 3+ messages in thread
From: Lawrence Velázquez @ 2023-02-11 20:13 UTC (permalink / raw)
To: Aki Hoji; +Cc: zsh-users
On Sat, Feb 11, 2023, at 1:43 PM, Mikael Magnusson wrote:
> On 2/11/23, Aki Hoji <akhst7@gmail.com> wrote:
>> Hi,
>>
>> I have a following bash script minor maintenance;
>>
>> #!/bin/bash
>
> This is zsh-users, try a bash mailing list.
This is the bash help list:
https://lists.gnu.org/mailman/listinfo/help-bash
--
vq
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-02-11 20:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-11 17:55 unexpected EOF while looking for matching `'' Aki Hoji
2023-02-11 18:43 ` Mikael Magnusson
2023-02-11 20:13 ` Lawrence Velázquez
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).