csh is not compatible #316
Labels
No labels
bugfix
cleanup
discussion
documentation
doing
done
feature
improvement
packaging
Stale
testing
TODO
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ungleich-public/cdist#316
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Created by: pestaa
cshis the default shell on FreeBSD 9.0. Although it is supposed to be POSIX-compatible, it does not supportsyntax and it stops with error
This issue is easily fixable by changing the default shell even to plain
sh, but it is one caveat that might be noted to FreeBSD developers.Created by: telmich
Added a permanent entry in the log directory: doc/dev/logs/2012-05-31.csh-compatibilty
Created by: telmich
cat * | /bin/sh -s could also work, needs testing though
Created by: telmich
Ha!
I've found a solution!
We can setup the variables locally (within a specific context/call) and then send it via the ssh option
"-o SendEnv name"
Do you want to give it a try to implement this in a feature branch?
Created by: telmich
Hey Istvan,
Istvan Beregszaszi [Sat, Apr 14, 2012 at 07:59:36AM -0700]:
Maybe there is even a way to work around this issue:
Maybe we can join / setup the variables inside the /bin/sh call and thus
ignoring whatever shell root is configured for.
Haven't checked the docs (falling almost asleep, but wanted to
write down this comment), but something like this could work:
And if not this, the ugly version, creating a file on the remote side
containing
key=value
key2=value2
and the executing the file with /bin/sh would work.
I consider the second approach ugly, but a possible way. I imagine we
could figure some not-so-bad syntax to avoid this.
Cheers,
Nico
PGP key: 7ED9 F7D3 6B10 81D7 0EC5 5C09 D7DC C8E4 3187 7DF0
Created by: jdguffey
Indeed. This is an issue that I have run into myself. To solve it, I made /bin/sh the default shell for root on all new FreeBSD deployments. I didn't really think anything of it, but now that you mention it, I would have to agree that perhaps this caveat should be listed in doc/man/man1/cdist.text or doc/man/man7/cdist-quickstart.text.
Thoughts on this, Nico?