Comments (14)
I went ahead and replaced git_force_update.csh
with force_update_emacsd.sh
.
In tcsh
, I use this alias:
alias update_emacs_config '(set e="/tmp/${USER}_force_update_emacsd.sh" \\
&& curl https://raw.githubusercontent.com/kaushalmodi/.emacs.d/master/force_update_emacsd.sh >! $e \\
&& chmod 0755 $e \\
&& $e \!:1)'
from .emacs.d.
Works without any errors. Tested with bash on Ubuntu system.
RHEL probably has sh symlinked to bash.
In case of debian based systems it is symlinked to dash.
hari@hari-laptop:~$ ll /bin/sh
lrwxrwxrwx 1 root root 4 Nov 1 10:31 /bin/sh -> dash*
from .emacs.d.
Thanks, I was almost going to do that as I do the same for perl
. I assumed that bash
would be fine.
But there you go ( bd11312 ). I cannot not do the right thing. :)
from .emacs.d.
any reason you are using csh script in the first place?
from .emacs.d.
@rdotdk work
from .emacs.d.
Work laptop? Okay. Let me guess RHEL?
from .emacs.d.
Work laptop?
Sort of, virtual machine.
RHEL?
Yup
from .emacs.d.
@kaushalmodi the script seems to fail with ./force_update_emacsd.sh: [[: not found
error. I think the first line #!/bin/sh
should be #!/bin/bash
.
from .emacs.d.
@rdotdk Thanks for trying. RHEL probably has sh
symlinked to bash
. So I didn't notice it. Let me see if I can use [
instead of [[
. If not, will change the shebang to bash
.
from .emacs.d.
RHEL probably has
sh
symlinked tobash
.
Of course it is :)
> sh --version
GNU bash, version 4.1.2(1)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
from .emacs.d.
As I cannot try the "real sh" on my system, I am going with what you suggested.
@rdotdk Try out after updating to cc6e09d
from .emacs.d.
Works without any errors. Tested with bash on Ubuntu system.
Thanks for confirming!
from .emacs.d.
Note to self: Never use #!/bin/sh
in shebangs.
from .emacs.d.
Yes. Also the paths shouldn't be mentioned directly in the shebang, instead #!/usr/bin/env bash
should be used for portability.
from .emacs.d.
Related Issues (20)
- find the current instance block HOT 3
- projectile is adding .git folders to the list of known projects HOT 4
- Use a regular org comment instead of #+HEADER to mark images needing pdf2png conversion HOT 7
- Do not set Slant face property to italics in term mode HOT 1
- Suggestion to improve HOT 4
- Dedicated repo for eless? HOT 1
- eless: Doesn't preserve view-mode when opening file from dired HOT 1
- remove assignment of eww-search-prefix in modi/eww--go-to-first-search-result HOT 1
- seems modi/eww--go-to-first-search-result not working properly HOT 5
- modi/eww-im-feeling-lucky can be improved
- Error modi/temporary-file-directory HOT 7
- Replace focus-in-hook with new hook [emacs 27.x]
- File permissions HOT 2
- manually-synced directory HOT 4
- Opening executable tcl-files HOT 5
- Changing the hugo mode load HOT 1
- Loading 'iy-go-to-char' package HOT 1
- Loading 'interleave' package HOT 1
- Issues setting up emacs (version < 27) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from .emacs.d.