You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for pointing this out @NickCheng0921. It seems versions of echo on different systems have different options, some support -e, others only support -n.
The base image used here is ubuntu 22.04, and this doesn't require the -e. To get round this all, I've changed the Dockerfile to use printf:
As of 2/2/25
In the Dockerfile for openworm,
RUN echo '\n\nalias cd..="cd .."\nalias h=history\nalias ll="ls -alt"' >> ~/.bashrc
doesn't seem to update bashrc properly
Running source ~/.bashrc throws the below error
root@1a2cf2d71234:/# source ~/.bashrc
bash: nnalias: command not found
As the aliases aren't written into the bashrc correctly
Instead, using -e interprets the string properly
RUN echo '\n\nalias cd..="cd .."\nalias h=history\nalias ll="ls -alt"' >> ~/.bashrc
~/.bashrc with -e
alias cd..='cd ..'
alias h='history'
alias ll='ls -alt'
~/.bashrc without -e
\n\nalias cd..="cd .."\nalias h=history\nalias ll="ls -alt"
The text was updated successfully, but these errors were encountered: