How to clear MAC bash [closed] - bash

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
After installing lots of gems and exporting path in my OS 10 bash appears to be messy and show lots of error. How do I clear these error.
how can i clear this

I think the problem is that source <smth> is on the same line as the if construct.
Open .bash_profile in any text editor, find line 22, press Enter after fi and then save the file.

Related

Ruby code not executing even with code = 0 [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 days ago.
Improve this question
Here is a link to a google drive with a .docx folder to all my code. Also directions of my assignment I had to create for any confusion on what im making. I am making a water bill. I coded everything but it doesnt execute. Even thoe it has the code=0 prompt in my terminal. I am trying to get it to print the information.
link
I tried to create a main function. Didnt work. Tried to call my function didnt work. Any ideas? again I could be a big goof and messed up my code.

Do I need to state the path of a VBScript file in the same directory? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 days ago.
Improve this question
I am trying to run a VBScript file in the same directory but I keep getting an error.
Here is my code: *
Set WshShell=CreateObject("Wscript.Shell")
WshShell.Run("file2.vbs")*
It keeps giving an error for some reason.
Does anyone know what I'm doing wrong?
Should I write instead:
WshShell.Run("C:/Users/EpicGaming/Documents/file2.vbs")
Thanks!

Is there any way to open a folder containing long filename in MS Windows perl? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
Perl script to open a folder which contains a longfile name and shows an error "Could not open 'dir' for reading 'Filename too long'"
perl: handling long filenames in MS Windows
https://www.codeproject.com/Questions/1002424/how-to-resolve-Filename-too-long-when-readdir-in-p suggest it is MS Windows specific problem fixed by use of Win32::LongPath perl module.

Adding OCaml support to bashrc [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 6 years ago.
Improve this question
This has been flagged as a duplicate but the solution described in the possible duplicate is what I have tried and it did not work for me.
I installed OCaml and the installer said to add /Users/me/ocamlbrew/ocaml-4.02.3/etc/ocamlbrew.bashrc to my .bashrc file I did so and it doesnt seem to help.
I have to run /Users/me/ocamlbrew/ocaml-4.02.3/etc/ocamlbrew.bashrc on every new terminal window before I can use Ocaml as a command. What can I do to avoid this?
This is what I tried:
alias ocaml = source /Users/me/ocamlbrew/ocaml-4.02.3/etc/ocamlbrew.bashrc
I also tried
source /Users/me/ocamlbrew/ocaml-4.02.3/etc/ocamlbrew.bashrc
I've tried editing my ~/.bashrc file and my ~/.bash_profile
I ended up adding source /Users/me/ocamlbrew/ocaml-4.02.3/etc/ocamlbrew.bashrc to (the installer lied about where to do this) my ~/.bash_profile and then calling source ~/.bash_profilefrom the terminal.

Why is my Vim crashing on one particular Ruby file? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
The output I'm seeing is,
Vim: Caught deadly signal SEGV3C
Vim: Finished.
Segmentation fault (core dumped)
This happens only when I try to open one particular Ruby source file. Other Ruby source files open just fine, but this one particular one does not.
It looks like there were some strange invisible characters in the file. I tried to remove them with a tr command that removes non-ASCII characters, but that didn't work.
So, I just kind of copied lines over manually to a new file, hoping to exclude the strange characters that were causing the issue, and that seemed to work.

Resources