Looper
The Devastating Death Of Deadliest Catch's Todd Kochutin

Bin sh 1 not found

Bin sh 1 not found. Jul 9, 2019 · /bin/sh: bc: command not found. The script will not be interpreted by bash if you explicitly run it with e. js Runtime) then you could try to treat it just like any other non-node. Then I ran this command: docker logs fastapi_api_1 And it says: /bin/sh: 1: [uvicorn,: not found May 20, 2022 · /bin/sh: foo: not found. Ask Question Asked 5 years, 3 months ago. sh: [[: not found $ bash test. It could be a missing dependency. sh I get an error: bash: . Unix (and Linux) uses just LF. If not, it will see if there's an executable command /usr/bin/foo and if not there, it will look to see if /bin/foo exists, etc. Mar 21, 2021 · Your shell is /bin/sh, but source expects /bin/bash, perhaps because it puts its initialization in ~/. Laravel PHP command not found. zshrc; Enter insert mode (type I on your keyboard) then paste Nov 12, 2015 · The issue has been resolved. Apr 10, 2019 · When executing my init. Pro tip for anyone: install scriptcs using . Run Jest. The course was called: Code Clinic: Go. 7s - Container fastapi_api_1 Started Then to check if its running properly I ran the following command: docker ps -a And it showed that Container exited few seconds after it was created. cfg /bin/sh: 1: arm-none-eabi-gcc: not found GEN include/autoconf. cd ~|. sh (don't forget to do chmod a+x shell. Hot Network Questions Sep 29, 2016 · For efficiency you'll want to avoid multiple RUN statements, especially when they are closely related like this. Mar 2, 2019 · There is a problem in your indentation and the blank line between print and else. Open it and chek out the path! In my case, the path was wrong! This will solve your problem for 90%. 7. npm -v: 8. The issue boiled down to me not having node_modules in the mounted volume. mk. Perhaps this discrepancy (i. npm-global/bin to my path variable resolved the issue. If there is, it will execute /usr/local/bin/foo. command works in the terminal, wont work in php. And you do sudo reboot and do cat node_log. However, when I run the identical command in a script (using sh), it failed with. ’. Oct 18, 2010 · Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers; Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand Apr 12, 2021 · I was struggling with the same exact problem for hours. Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. Provide details and share your research! But avoid …. although the line starting with RUN test -e outputs file exists, indicating that foo has been successfully copied to /root/bin/foo. His approach worked. calling /bin/sh as opposed to /usr/bin/sh) is at the root of this problem? Stack Exchange Network. 15. sh is in the /Home/monty folder and I made it executable: chmod 755 test. sh, then I made sure it is executable. 2. sh is flagged executable and whether it has a valid shebang, etc. sh" Output: /root/test. exe (you shouldn't really need to add -f Makefile as that's the default). 1 root root 4 Aug 10 06:46 /bin/sh Aug 1, 2015 · But apparently Ubuntu cannot find it. 0-SNAPSHOT. crontab -e. py"] Apr 26, 2016 · I found this course on a website called Lynda. Basically, while doing docker-compose build the image was build correctly with the actual code being added to the image and creating the node_modules folder by npm install in the project root. log bun run /home/pi/script/index. Asking for help, clarification, or responding to other answers. however, pip is already available. ’ command to achieve the same effect. 3. Command php not found in Windows. com and having this same issue, today is your lucky day. occurs. Then I ran my script and got notifications that the module is missing: Traceback (most recent call last): File "script. Call popen with the path found in 1. Check if Jest is installed. As a temporary solution, you might be lucky that your script also works with, for example, bash: #!/bin/bash. However, I have a question. But no "bc" function is used in my Makefile. Solution: When editing the file, make sure you use Unix line endings. Jan 20, 2021 · Assuming the images are removed and replaced with text and the question doesn't get closed. Ask Question Asked 7 years, 1 month ago. ’ When I do /sbin/ebtables, the shell says /bin/sh: /sbin/ebtables: not found, but I can do ls -l /sbin/ebtables and it shows up perfectly:-rwxr-xr-x 1 admin admin 4808 Aug 4 10:36 /sbin/ebtables Any ideas about what's going on here? Aug 12, 2020 · But unfortunately it gives out command not found Path variables have already been set in /etc/profile and if you type the command in the shell, it will be executed as well. Docker cannot find file when building the image. I would say it is happening because JAVA_HOME environment variable is not set, but then why it works from shell? Sep 22, 2020 · /bin/sh: 1: go: not found , but `go` is clearly in the PATH variable. Press y and Enter if prompted to continue the installation. jar /app. Something like RUN apt-get clean && apt-get -y update && apt-get install -y locales && locale-gen en_US. 008 seconds The program does not show the desired output. e. BEFORE which node node not found NODE + NPM INSTALLATION Jul 23, 2020 · I want to run an executable installed with pip. mk, uncomment the $(CP) line in the define Build/Prepare section; eliminate the define Build/Compile section), it works just fine: it prints Hello Jun 12, 2019 · /bin/sh: 1: sudo: not found when running dockerfile. sh I am calling the command: sudo bash ${INSTALLPATH}seafile. sh test. bashrc file at the end of this file, exiting and reloading it in the current terminal using the next command: . node -v: v16. Ask Question Asked 3 years, 11 months ago. jar Additionally, if you don't override the command when you start your image, use CMD (documentation) instead of ENTRYPOINT (and also try to use more "normal" quotes instead of ”): Feb 14, 2013 · Demonstration on Debian, with test. . I ran the command pip install pipenv, which ran successfully:Successfully built pipenv pathlib shutilwhich pythonz-bd virtualenv-clone Installing collected packages: virtualenv, pathlib, shutilwhich, backports. myscript. Conversely, cron will deliver errors like /usr/bin/restartxyz is not a valid username or similar when the reverse occurs. Here’s the updated command: With this modification, the custom command will be re-run whenever the CL source file is edited, ensuring that your OpenCL kernels are always up-to-date. In the shell form you can use a \ (backslash) to continue a single RUN instruction onto the next line. Now I don't understand. js file. The byte order mark (BOM) is a Unicode character, U+FEFF byte order mark (BOM), whose appearance as a magic number at the start of a text stream can signal several things to a program consuming the text Jul 7, 2013 · line 1: ?#!/usr/bin/sh: not found when trying to execute a shell script. Now available on Stack Overflow for Teams! AI features where you work: search, IDE, and chat. sh or just:. 2. If /bin/sh does exist (like it should), then somehow Ubuntu cannot interpret that first line. Dec 21, 2022 · I am trying to run a laravel app from a docker container. scripts/kconfig/conf --silentoldconfig Kconfig CHK include/config. until it gets to /Users/david/bin/foo. 57. Viewed 72k times 51 This is the content Jan 10, 2019 · /bin/sh: 1: php: not found curl: (23) Failed writing body (0 != 16133) I am not sure what is going wrong. All reactions. sh /bin/sh -c ". Finally, I could install dependencies and start working on my project by doing this: Temporarily remove the "prepare": "husky install" script from the package. strange, it worked for me. /script, or if you run it with bash script. Following this, the error: seafile_1_f2341d904d27 | /bin/sh: 1: sudo: not found. It will be interpreted by bash if it's executable and its first line is #!/bin/bash (adjust the path to match the location of the bash binary on your system) and you run it with . sh on terminal. Docker ERROR: unsatisfiable constraints when using apk. /ex. Oct 12, 2023 · Now, let’s explore some solutions to resolve the ‘/bin/sh: 1: source: not found’ issue: Open your script in a text editor. 1. Both the online and offline steps take similar amounts of time to run due to building fresh packages. sh: line 1: not-a-command: command not found Now check the exit code: echo $? 127 I would suggest running the script inside an interactive environment to identify/install the command that is not found. 5. Modified 7 years, 1 month ago. Add Jest to your path. Commented Aug 24, 2022 at 15:40. sh does this by: Nov 25, 2020 · The trick with Makefile not finding cc when using gcc is usually setting CC=gcc. json file. There are several ways I can handle Byte-order Mark (BOM) This could be caused by a BOM. jar from shell and it worked just fine. In the Dockerfile case, use the recommended. At the top of the script, find the shebang line (the first line), which looks like ‘#!/bin/sh. bashrc returns command not found. Working through a NestJS/Mongo DB tutorial i stumbled into this very same problem. jsonにreact-scriptsが存在するかを確認 adding that line of code give: Step 4/7 : RUN set -xe && apt-get update && apt-get install python- pip ---> Running in 0cca59ad3d01 + apt-get update /bin/sh: apt-get: not found. So, I'm using something called Go or Golang and I downloaded this command program called Git Shell, and whenever I execute a Go Command, I get this message: bash: go : command not found Apr 14, 1995 · root@OpenWrt:~# chw /usr/bin/chw: line 1: ELF: not found /usr/bin/chw: line 2: syntax error: unexpected "(" When I build the ELF without cmake (comment out the line include $(INCLUDE_DIR)/cmake. Jan 24, 2011 · This will cause errors stating things like george; command not found when you move a command out of /etc/crontab or a file in /etc/cron. pushd not working in makefile. javascript; node. Jan 4, 2012 · not mod but when I write a script to do the same thing: #!/bin/sh if [[ -a /path/to/file. gphoto is installed correctly, as in, the commands work fine in Terminal. you have to use apk to install packages. sh in that case) Jun 18, 2015 · Or use the "Community Wiki" checkbox to disclaim reputation for something you didn't write. h UPD include/config. May be, the flake8 package is not installed in the correct location path. Feb 7, 2011 · cd subdir # works via interactive bash; not in script run via sh. Popen(['gpho Jul 14, 2021 · I wanted to switch the shell to sh so I typed: rakinar2@hotspot:~$ sh But it says: -bash: sh: command not found How do I fix that? Note: test -e /bin/sh returns 1! Dec 26, 2023 · Fix sh: jest: command not found error in 3 steps 1. js dependency and build a custom runtime with it - see /bin/sh: hogehoge: command not found のようにエラーメールが送信され、cronが実行されない場合があります。 SSHやtelnetなどのコマンドプロンプトでは実行されるコマンドが、cronでは実行されないというときは実行されるコマンドにPATHが通っていないことが考えられ /bin/sh: 0: command not found. maven; docker; build; Share. If ls /bin/sh shows no result, then I guess that needs to be fixed. py and for anyone wondering, this is the code on main. Aug 14, 2019 · /bin/sh: 1: poetry: not found ERROR: Service 'web' failed to build: The command '/bin/sh -c poetry install && bundler install' returned a non-zero code: 127 here it is my docker file and docker-compose-yml file: dockerfile: /bin/sh: 1: java: not found I tried to run this command: java -jar test. I guess this is a PHP configuration problem, but you can bypass it by: Run which tail to determine the full path to the tail program. txt ]]; then echo "not mod"; else echo "mod"; fi and then execute the script, I get this:. Jan 19, 2015 · The file doesn't exist. bash_profile using terminal: $ open ~/. Viewed 6k times 6 Apr 28, 2020 · This solves the problem of the command not being found, but significantly negates the benefit of caching, time-wise. sh echo "not-a-command" >> test. Jul 23, 2016 · Then i get this error: /bin/sh: 1: node: not found. 00000000 23 21 2f 62 69 6e 2f 62 61 73 68 0a 63 64 20 7e |#!/bin/bash. Here is my Dockerfile FROM php:8. I was facing the same issue when building an image based on openjdk:14-alpine from a Windows 10 machine. sh. 0. g. node: not found & found depends of run method. This will cause a potential problem, the interpreter of the runner is not the same as the one of the virtual env for the project? Mar 20, 2018 · Ensure that you ADD your jar at the root using:. Modified 3 years, 11 months ago. Use the ‘. My test. brew install scriptcs Aug 18, 2021 · /bin/sh: 1: apk: not found while creating docker image. So I just replaced the link to /bin/bash. After trying all of the solutions that were listed above, even turning my default profile back to bash instead of using zsh, i found that simply adding the /usr/local/bin and ~/. dep /bin/sh: 1: arm-none Sep 15, 2021 · Then, as you wrote, I ran the command: . config. From Wikipedia, a BOM is a . After that I got:!bc The build fails on a Docker container with sh: 1: cargo: not found, I see /bin/sh: 3: cargo: not found This works perfectly fine on macOS. Careful using rm like this in your system! $ sudo rm /bin/sh $ sudo ln -s /bin/bash /bin/sh Mar 31, 2021 · 実際のエラーの原因は「スクリプトが見つからない」こと、ではなく「スクリプトのshebangに指定した /bin/bash が見つからない」ことでした。 docker/git は Alpine Linux ベースなので、Bashは初期状態ではインストールされていないのです。 Nov 17, 2016 · From Docker docs:. Update the APT repositories after installation: Aug 20, 2018 · /bin/sh scriptcs: command not found Then [Done] exited with code=127 in 0. Aug 13, 2021 · Please help, I am having this issue while deploying my nextjs app in Heroku, the app runs fine locally. chmod +x /home/pi/startup. Jul 26, 2018 · Given your context, this typically means you are missing a shared library. main. bash can return "file not found" when. sh $ . h not found” Error; Solutions to Resolve the Issue: Now, let’s explore some solutions to resolve the ‘/bin/sh: 1: source: not found’ issue: Modify the Shebang Line: Open your script in a text editor. exe (and if needed CXX=g++. Take into account this: Tabs are replaced (from left to right) by one to eight spaces such that the total number of characters up to and including the replacement is a multiple of eight (this is intended to be the same rule as used by Unix). To call the script I do this:. Jan 7, 2021 · I encountered the same issue and solved it with these steps: From the terminal, command sudo vi ~/. Jun 16, 2020 · touch test. Mind, as long as credit is given doing this is within the rules, and I'm not contributing to downvoting it -- but flagging things where the content was someone else's as CW is considered good form. I have node installed with nvm, maybe that is the cause, but don't know why. But for some reason when this program tries to execute the thing via shell, it doesn't seem to find the environment paths/shell scripts. Sep 16, 2014 · bash script. In other words, this problem can occur in any setting where the "sh" shell is used instead of the "bash", causing "/bin/sh: 1: MY_COMMAND: not found". Aug 26, 2018 · Docker image error: /bin/sh: 1: python: not found. /activate As a result, nothing was displayed in the terminal. Dec 15, 2018 · Connect to your instance and check if you have the gcloud SDK installed in the default runtime image supplied by Google. py Nov 24, 2023 · Hello, I have recently started to install my workspace on VSCode. d into a user's crontab file. My guess is that you have unprintable control characters in the file, or it has \r\n (CRLF) line endings (dos/windows mode). Jun 16, 2017 · /bin/sh: 1: mvn: not found The command '/bin/sh -c mvn install' returned a non-zero code: 127. Running the script as a command will use that line to find the shell. With alpine, it's typically glibc since they ship with libmusl. It's in general a bad idea to do it like that, because you don't have control over the nodejs and npm version Jan 22, 2020 · Probably you have a problem with your babel. So I tried to install "bc" by myself. ADD target/myjar-1. getting Ansible bad python interpreter error? 6. If I simply specify python3 -u as the runner, it will use the default interpreter of the OS, I think. Hot Network Questions How to total time duration for an arbitrary number of tracked tasks in Excel? Sep 24, 2017 · I'm attempting to use pipenv. EDIT: Much thanks to @VonC. /shell. sh instead of sh shell. sh with contents: #!/bin/bash if [[ "string" == "string" ]]; then echo This is Bash fi this happens: $ readlink -f $(which sh) /bin/dash $ sh test. Learn more Explore Teams make: arm-none-eabi-gcc: Command not found /bin/sh: 1: arm-none-eabi-gcc: not found dirname: missing operand Try 'dirname --help' for more information. 752659+00:00 Mar 17, 2020 · (base) daniellombardi@Daniels-MacBook-Pro MyApp-test % docker run bd /bin/sh: 1: python: not found The Dockerfile: FROM ubuntu RUN apt-get update && apt-get install -y python3 python3-pip RUN pip3 install flask RUN mkdir /MyApp-test ADD folder /opt/MyApp-test EXPOSE 5000 CMD python . – Mar 20, 2019 · Node also packages npm, so no need to install npm like mentioned by Yury. py", line 35, in <module> from fpylll import LLL, BKZ, IntegerMatrix ModuleNotFoundError: No module named 'fpylll' Feb 18, 2016 · Probably your PATH is NOT configured properly, when calling popen. Open . Use setuptools to install pip: sudo easy_install pip (I know the above part of my answer is redundant with klobucar's, but I can't add comments yet), so here's an answer with a solution to sudo: easy_install: command not found on Debian/Ubuntu: sudo apt-get install python-setuptools May 19, 2019 · As suggested in comments, you could create an alias as follows: alias python='python3' by adding it to the ~/. I have installed Python3, MinGW (containing MSYS), GNUWin32 and OpenMPI on my Windows 10 laptop. p = subprocess. Since you have the #!/bin/bash shebang line, you don't need to specify the shell interpreter explicitly on the command line. com (some of you probably know about this website). You can check this with: Sep 6, 2022 · /bin/sh: 1: php: not found I tried running the following for reference: # which php /usr/local/bin/php # whoami root I am running cron from inside a docker image (OS Jun 4, 2013 · Now available on Stack Overflow for Teams! AI features where you work: search, IDE, and chat. log 2>&1 & bun run /home/pi/script/index. Seems like commands like apt-get that should be there aren't found at all when the image is being created. So for Linux, the command reads "execute /bin/sh<CR> and sh<CR> doesn't exist. Please help me with this issue. shutil-get-terminal-size, pythonz-bd, virtualenv-clone, pew, first, six, click, pip-tools, certifi, chardet, idna, urllib3, requests, pipenv Jun 4, 2010 · Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question. Log: 2021-08-13T07:26:20. The default shell for the shell form can be changed using the SHELL command. 14. jar ecstatic_allen:/tmp docker container exec ecstatic_allen ls /tmp docker container commit ecstatic_allen in28min/hello-world-rest-api:manual1 docker run syedwn14/hello-world-rest-api:manual1 docker container ls docker container commit --change='CMD ["java","-jar Sep 22, 2015 · /bin/sh: 1: [python,: not found. Dec 8, 2021 · Network fastapi_default Created 0. Learn more about how to fix this error at Apr 27, 2019 · alpine's package manager is apk not apt-get. 10 Mar 13, 2019 · A minimal reproducible example, giving us enough detail to produce the problem ourselves, might include details such as what directory your C program is in, what directory you invoke the C program from, what command you use for that invocation, whether your matrix. will work as expected in my interactive login shell, bash, even when CDPATH is set. Since /bin/sh resolves to dash rather than bash, source will not work in this default shell. opening the directory "bin" and looking at "sh" it is just some unreadable charakters. If it can't find a command foo in any of those directories, it tell me command not found. 241. $ sudo docker-compose run --rm app sh -c "flake8" It says, sh: flake8: not found. Below is the log from Heroku and my package. /script. 0. js >> /home/pi/node_log. /subdir and it Have you tried sh . Learn more Explore Teams Feb 6, 2023 · Also of note: running the command which sh in the terminal returns /usr/bin/sh, as I suspect it should. Mar 22, 2020 · docker run -dit openjdk:8-jdk-alpine docker container exec ecstatic_allen ls /tmp docker container cp target/hello-world-rest-api. h CFG u-boot. I am trying to run gphoto2 from python but, with no succes. @reboot /home/pi/startup. Command: Instead of using ‘source,’ you can use the ‘. Oct 12, 2023 · To achieve this, you need to add the CL source file to the DEPENDS list of your custom command. Notably you'll get that type of message if the runtime linker ("program interpreter") set in the ELF header does not exist on your system. May 5, 2020 · It works. exe, you can also specify the full path if you like) either as environment variables or on the make command line like this: make CC=gcc. Learn more Explore Teams Oct 12, 2023 · How to Fix the “Include linux/init. log, then it says “bun: command not found”. sh In Ubuntu 18. My Dockerfile specified to use the Alpine Linux OS, which is a minimal OS: FROM node:current-alpine3. that Dockerfile should work: FROM python:3. Turns out a NodeJS install was required and Code Runner worked like champ. Mar 20, 2012 · Old 2013 answer (easy_install is now deprecated):. Jul 13, 2017 · "/bin/sh: 1: [“apache2ctl”,: not found" in docker. The issue was that locally the mvnw script had Windows line endings (\r\n called CRLF). Running the following image gives me /bin/sh: 1: [hbd,: not found: sh and bash are two different shells (or, rather, bash is a specific shell; sh is a specification with minimum features a shell needs to provide to be POSIX-compliant, so any shell started under the "sh" name is not guaranteed to provide more than those minimum baseline features). First: !pip install bc; The installation has been going on for a while. Modified 4 years, 8 months ago. If you believe the question would be on-topic on another Stack Exchange site , you can leave a comment to explain where the question may be able to be answered. the entrypoint shell script is not marked executable for the current user Mar 15, 2021 · I found the answer to my own question. 04. ~/. If it isn't installed (not impossible - it doesn't appear included in the standard environment either, see System Packages Included in the Node. Mar 21, 2024 · The add-apt-repository command is in the software-properties-common package. bashrc Jun 30, 2017 · webpack -v: webpack command not found. connected to SSH with my VM Debian Ionic framework Anglular , Standalone project is already created All the node capacitors are installed throught npm c&hellip; I tried switching to the /bin/bash to /bin/sh but still kept getting /bin/sh: 1: sudo: not found – crypdick. sh script. sh: line 9: cd: subdir: No such file or directory I modified it to be a relative path: cd . Ansible install fails on RHEL 7. But if I open a shell when running the image, running python opens the interactive prompt as expected. bash_profile; Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers; Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand Feb 13, 2023 · 1から環境を作るのに加えて、既存プロジェクトからReactフォルダのみ移す方法でも環境構築を行いました。 その際に発生したエラーの対応についてもまとめておきます。 /bin/sh: 1: react-scripts: not found ・package. The dockerfile calling init. In conclusion, resolving the “/bin/sh: 1: not found” issue in Oct 27, 2023 · For example, on Ubuntu and many Debian-based distros, /bin/sh points to dash: ls -l /bin/sh lrwxrwxrwx 1 root root 4 Jan 8 2020 /bin/sh -> dash. To check for that, run: readelf -l your_executable|grep "program interpreter". 6-alpine RUN apk update && \ apk add --virtual build-deps gcc python-dev musl-dev WORKDIR /app ADD . is NEVER in the PATH varable) Also the first line in your script #!/bin/bash is only needed if the script is run by itself, like . 28. It just returns command not found. sh This is Bash Sep 9, 2016 · If your TSC command is not found in MacOS after proper installation of TypeScript (using the following command: $ sudo npm install -g typescript, then ensure Node /bin path is added to the PATH variable in . 0 RUN apt-get update -y && apt-get install -y openssl zip unzip RUN curl -sS https://getcomposer. If what it gives you does not exist on your system, or has missing dependencies (check Mar 19, 2015 · I'm trying to execute test. bash_profile. Tried to install webpack globally or locally and a lot of other ways to fix this issue but failed, below solution fixed my case (my case is a little bit special, I reset the prefix as below) Feb 15, 2012 · Not suitable for this site This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. Apr 26, 2017 · bin/sh: 1: source: not found. Shell Script error: command not found. sh I try to execute it using: $. Change it to ‘#!/bin/bash’ to ensure that the script is executed with Bash. sh start. source ~/. Save the script. By contrast, on CentOS /bin/sh points to bash: ls -l /bin/sh lrwxrwxrwx. sh: 2: [[: not found mod I saved the script on the current directory and named it ex. Try checking it with these commands: $ hexdump -C build. /app RUN pip install -r requirements. 4. txt EXPOSE 5000 CMD ["python", "main. sh chmod 755 test. Follow edited Jun 20, 2020 at 9:12 Dec 5, 2021 · If you came here looking for a solution because you are trying to deploy nestjs app on render. sh: #!/bin/bash sleep 15 echo "Hello, Raspberry Pi!" >> /home/pi/startup. Apr 26, 2020 · Ansible fails with /bin/sh: 1: /usr/bin/python: not found. I think it could be a permissions issue or a directory issue. bashrc. /test. Dec 1, 2022 · Then I executed the following command but result was not expected. UTF-8 would create a single layer instead of three. sh: 2: test. The which node command exposed the issue. sh This is Bash $ chmod 755 test. js; Share. Sep 24, 2023 · startup. Usually, for sh, the path is /bin/sh, so it should be #!/bin/sh. sh When bash is run using the name sh, it disables most of its extensions, such as the [[testing operator. Windows uses CR+LF as line ending. You're editing the file on Windows. sh? (for security reasons, the current directory . / $ ls -l /bin/sh lrwxrwxrwx 1 root root 4 ago 15 2012 /bin/sh -> dash As you can see, /bin/sh is a link to "dash" (not bash), and [[is bash syntactic sugarness. js. jwajwde tsdcoo cjt pnyh dothi fsuwrk iit ssmpjka ifsmzdq pldc