The default Unix shell used by Terminal in Mac OS X

learn more… | top users | synonyms

0
votes
1answer
9 views

Getting unknown command error when trying to run a bash script

I recently had to re-install 10.9.5 (default install) and am now finding that bash scripts that run perfectly from the command line (~/Me...) no longer work using crontab. I use crontab to invoke ...
2
votes
2answers
39 views

Auto-Update Script

I'm trying to get the Macs at my workplace all updating at a specific time. To do so, I'm running a bash script from a spare Macbook running OS X Server. I have one minor and one big issue with my ...
2
votes
1answer
44 views

changes to .bash_profile causing Terminal shell to not load but keep looping with PATH settings

I was trying to make some changes with PATH (mostly add a new PATH) to my .bash_profile and the last line entered was source .bash_profile. After I saved and restarted the Terminal app, instead of ...
0
votes
0answers
18 views

OS X Terminal ā€“ Open Tab in current directory, troubles with umlauts

I run OS X 10.7.5. I am currently experiencing an issue with Terminal. I have enabled the option to open new tabs in the current working directory. However, this does not work as expected, when the ...
0
votes
1answer
65 views

Commands not found in Terminal except echo

In my terminal basic commands are not found like: mds-macbook-pro:~ ZILLURRAHMAN$ ls -bash: ls: command not found mds-macbook-pro:~ ZILLURRAHMAN$ env -bash: env: command not found mds-macbook-pro:~ ...
0
votes
0answers
49 views

Bash shell doesn't inherit $PATH set in /etc/launchd.conf

I am new mac OS X user and recently I am setting up my laptop as a work environment. That concerns environment variables setting in shell. After some search work I found several ways to set ...
0
votes
2answers
35 views

Route command to use wildcard

I have a bunch of routes to my LAN line that won't resolve through my WiFi (which is set as 1st order). sudo route add 10.999.999.999 10.888.888.888 I have a lot more but that's just a sample. This ...
1
vote
1answer
23 views

Run script before every Time Machine backup?

I would like to be able to run a bash script just before Time Machine runs, every time This script generates some content to be written on a file which needs to be backed up by TM. I have looked ...
4
votes
0answers
36 views

Launchd starts event 40 seconds later?

I've created a .plist file, which should act as system daemon (global with root user). This .plist file listens to the settings directory for changes like changing network settings. When this happens ...
1
vote
1answer
25 views

Terminal not recognising commands

I have tried to add TextWrangler to the path environment modifying the file .bash_profile. This is what I have added: # Just a comment PATH=/Applications/TextWrangler.app/Contents/MacOS export PATH ...
1
vote
1answer
59 views

Recompiling bash to avoid shellshock seems to have messed up bash

I probably shouldn't have even messed with it, but I followed the instructions to recompile bash here: How do I recompile Bash to avoid Shellshock (the remote exploit CVE-2014-6271 and CVE-2014-7169)? ...
3
votes
2answers
318 views

Have Apple announced whether the “Shellshock” bash update will be applied automatically via the App Store patching mechanism?

As described here, I'm technically vulnerable to the "Shellshock" bug in my shell. I'm running Mavericks. Apple has released an update to bash that addresses this issue. As per the example test ...
8
votes
1answer
92 views

What is the __CHECKFIX1436934 environment variable?

On OS X 10.9.5 my bash shell has the following environment variable set: __CHECKFIX1436934=1 What is the purpose of this value? I am surprised there is no record of anybody asking this before.
1
vote
1answer
39 views

Bash on OS X 10.4 ftp server

I am running OS X 10.4 on a G4 using Rumpus software for a FTP server. I keep reading I do not have to worry about Bash Bug if I am not running a web server or other services. does my FTP server ...
0
votes
1answer
3k views

is there a patch against “Shell Shock” for my system MacOS 10.6.8 bash version 3.2.48(1)-release (x86_64-apple-darwin10.0) [duplicate]

I already run the following and I get "vulnerable" Mac cysunza$ env x='() { :;}; echo vulnerable' bash -c 'echo hello' vulnerable hello I read the post about it but appears to me that his is just for ...
1
vote
3answers
49 views

bash-command not found; for every command == fear i could screwed up the path

here is the output of echo $PATH /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin and when I gave cat /etc/paths this is the output /usr/bin /bin /usr/sbin /sbin /usr/local/bin I am ...
3
votes
1answer
76 views

Are there any disadvantages to using the brew version of bash for /bin/sh?

I have patched bash & sh with the latest patches as described here, but now have some issues with some things in my dotfiles (particularly the loading of rvm and some custom functions and ...
-2
votes
1answer
139 views

Should bash shells be replaced with the new patched version? [duplicate]

This question has generated a lot of downvoting on three SE sites so let me try to explain where it comes from. The magnitude of the bash "shellshock" problem may turn out to be larger than anything ...
3
votes
3answers
1k views

Any way to update OSX 10.4's Bash version?

I'm running Bash version 2.05b.0(1)-release (powerpc-apple-darwin8.0) on a PowerMac (non-Intel) G5. I often connect to the internet, but not as a server and I believe my version of Bash is vulnerable ...
4
votes
1answer
176 views

Will recompiling bash to avoid Shellshock cause more harm than good

I wasn't particularly worried about Shellshock until I learned that a malicious DHCP server may be able to exploit my DHCP client to run arbitrary code on my system. It's not clear to me whether Macs ...
1
vote
0answers
69 views

How to fix Bash on an older MacOS

I am still running MacOS 10.6.8 on my older iMac because of software issues-some of my most useful stuff won't run on systems past Tiger. Can I use the patch published by Justin Meyers in "Every Mac ...
1
vote
1answer
124 views

How can I fix this CODESIGNING error?

After having successfully compiled bash and sh for OS X Mavericks our OS X Server's System Log is flooded every 2 or 3 seconds with: ... kernel[0]: CODESIGNING: rejected new signature for ...
3
votes
6answers
1k views

Can bash be replaced entirely in OS X?

Because of CVE-2014-6271 and CVE-2014-7169 on OS X I was wondering: can bash be replaced entirely by another, non-affected shell (eg dash or others)?
4
votes
1answer
340 views

How to mitigate Bash risk while waiting for a patch (sans a recompile)?

This is related to How do I recompile Bash to avoid the remote exploit CVE-2014-6271 and CVE-2014-7169?, Are Macs vulnerable to the Bash shellshock bug? and Are Bash, Bourne, and Korn shells compiled ...
46
votes
5answers
27k views

Are Macs vulnerable to the Bash shellshock bug?

Red Hat recently announced a major security-related bug in the Bash shell. Some are calling it the "shellshock" bug. Since OS X is built off of Unix, is it vulnerable to attacks that exploit this bug? ...
334
votes
7answers
235k views

How do I recompile Bash to avoid Shellshock (the remote exploit CVE-2014-6271 and CVE-2014-7169)?

Given that Bash 3.2 (the version shipped by OSX) is vulnerable to the remote execution exploit known as "Shell Shock" (CVE-2014-6271 and CVE-2014-7169) how do I rebuild Bash and secure my system ahead ...
3
votes
1answer
58 views

Is there a command line utility to display a string or an image in the status bar in Mavericks?

Basically I want to issue a command in a bash script or an Apple Script and see some string (or icon) in the status bar aka "where the clock is". Something similar to osascript but for the status ...
1
vote
1answer
272 views

Bash Script to Auto-Update (and reboot) all Updates to Mavericks & Yosemite?

I'm seeking a script that I can execute on a newly installed Mavericks or Yosemite computer, that will install all updates, rebooting as necessary and starting again automatically. For instance, I'd ...
1
vote
3answers
177 views

How to close a file and a folder using bash?

Is it possible? I would like something which is the opposite of the command open file_or_folder_name. I have searched on the web but I got no results.
1
vote
1answer
47 views

Switching between proxy and no-proxy config in .bash_profile

I have configured proxy settings (on mavericks) within $HOME/.bash_profile (purpose: to make npm, rvm, git use the corporate proxy) and the configs are as follows: git config --global http.proxy ...
0
votes
2answers
31 views

How to access a folder which name is composed of more than 1 word via shell?

I have tried with a simple command: cd Name of the Folder but it's not working, of course. I have also been searching on the web, but the methods I found are not actually working. How can I ...
0
votes
0answers
21 views

core dumps in Mac OS X

I was wondering if core dumps are disabled by default in Mac OS X, or if we have to add the following line to our .bash_profile: ulimit -S -c 0
2
votes
1answer
86 views

Updating and running Git through Homebrew instead of XCode

On my new 2014 Mac (OS X 10.9 Mavericks), I have just installed Git using Homebrew. In order to install Homebrew, I had to download and install XCode 5. So now, when I enter the command which git, I ...
0
votes
1answer
62 views

Mac OS X Terminal - Basic commands not found by shell [duplicate]

I've had some problems recently with terminal. The shell isn't able to execute basic commands, since they are not being found. Here's an example : -bash: ls: command not found I've been doing some ...
1
vote
1answer
32 views

Installing software on a MacBook

I'm switching from PC to a MacBook and wondered the best convention for installing new software. For example, I've downloaded the Atom IDE, unzipped the 4 files and put into the ...
4
votes
2answers
83 views

How to check the exit status of an application after using 'open' in shell

I've looked all over for this and I'm not entirely sure how to do this. I want to use a bash script to open an application using 'open' and then check the exit status of the application after it has ...
6
votes
2answers
553 views

Change *.txt to *.csv

How can I rename all *.txt in a directory to *.csv files in the terminal (Mavericks). I tried following inside the directory: mv *.txt *.csv
3
votes
5answers
154 views

Shell script help

I am new to writing shell scripts for Unix and need a little help. I am not sure why cURL now all of the sudden after running the script is downloading corrupts packages which cannot be mounted and ...
0
votes
0answers
52 views

Apple installer issue in terminal where -target keeps saying; error cannot find Volume

I am trying to use the Apple Installer commands to install a package and the output is that it was successful, however, the end result is that nothing actually happens meaning the package never gets ...
2
votes
2answers
43 views

Terminal window title rapidly changes when first opening

When I open a fresh terminal window, the title at the top has this format: [house icon][username]-[command]-[terminal size] The command portion of the title initially says login, then it very quickly ...
2
votes
0answers
35 views

How to make files safe so users can download and OS will not quarantine them?

I work with Axure software that generates dynamic and navigable prototypes in HTML. Once they are done I need to send a ZIP file of those HTML files to clients via e-mail or any download internal ...
1
vote
1answer
112 views

read creation date from file name and change - batch

I have files that are named like "clip-2014-01-31 18;50;15.mp4", i.e. "clip-YYYY-MM-DD hh;mm;ss.mp4". How can I set the creation date and time according to how it is specified in the file name for ...
1
vote
4answers
138 views

Getting my old Terminal back after uninstalling fish

Recently I got tired of the smaller kinks that the Fish Shell presented me with (undiscoverable commands etc.) so I decided I wanted to change the shell back to normal and uninstall fish. However in ...
1
vote
0answers
49 views

bash autocompletion scripts in OS X

Here is what I learned so far: # settings on mac if [[ $(uname) == "Darwin" ]]; then # enable bash completion if [ -f `brew --prefix`/etc/bash_completion ]; then . `brew ...
1
vote
1answer
106 views

Why does this bash script not work as an automator service?

I know very little about bash scripting or Terminal commands, this is all very new to me so please bear with me. Original script I would like to use a script I found on littlefield.info as an ...
1
vote
1answer
98 views

How to get a fall-through behavior in case statements in bash v3?

I just tested the following syntax on Linux: case "$OSTYPE" in linux-gnu*) ;;& linux*) echo $OSTYPE; ;; esac case "$OSTYPE" in linux-gnu*) ;& linux*) echo $OSTYPE; ;; esac which works ...
0
votes
0answers
64 views

Issues with Unicode symbols in some applications running in Terminal.app and iTerm2

Darwin DeoGloria 13.3.0 Darwin Kernel Version 13.3.0: Tue Jun 3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64 Fresh user account. Terminal.app and iTerm2 with UTF-8 set. Accented ...
1
vote
3answers
49 views

echo works incorrectly with GeekTool

I am trying to use echo in GeekTool to print text without a newline like this: echo -n "test" When I run that command in Terminal it prints this: test In geek tool it prints this: -n test What is ...
0
votes
0answers
18 views

The .command file in my Login Items stops running after a while

I have a .command file that I have added to my Login Items (System Preferences > Users & Groups > Login Items) on an iMac (OS X 10.8.5). The .command file is a script that should be running at all ...
0
votes
0answers
55 views

How to provide password to dsconfigad without specifying it from command line?

It seems that dsconfigad allows you to specify the password using -password XXX and if you do not specify it, it will ask you to type the password. I tried the usually bash approach with dsconfigad ...