Похожие чаты

Sorry guys, I don't know what was causing it but

eventually it worked out, it was surely my mistake somewhere. Why running with ./script.sh is bad? I have this shebang in the script: #!/usr/bin/env bash

6 ответов

12 просмотров

What's wrong with $0 being set to "-bash"?

Egidio- Автор вопроса
Alexander Gnatyuk
What's wrong with $0 being set to "-bash"?

No idea, sorry was developing something quickly didn't have time to investigate

Egidio
No idea, sorry was developing something quickly di...

Nothing to investigate. It just tells you what mode the shell is in AFAIK.

Egidio- Автор вопроса
Alexander Gnatyuk
Nothing to investigate. It just tells you what mod...

But what's the difference between -bash and bash?

Egidio
But what's the difference between -bash and bash?

You'll probably be interested in login / non-login shells or interactive / non-interactive shells.

Похожие вопросы

Обсуждают сегодня

Anyone here suffers from unexplained aural migraines, who would be up for talking for a bit? Doesn't *have* to be aural, but I am not asking about headaches, I mean actual mi...
Martin Rys
55
Привет, нужен совет старших товарищей. Есть глобальная переменная var DefaultDataFolder:string; инициализируем DefaultDataFolder:='a:\_OUT\'; есть примитивная процедур...
Max Otto
11
Agreed. And on a lighter note, I just love the idea of earning $FunToken while having fun. It’s like getting paid to do what we love. Who wouldn’t want that? 😄
SpaceGemz
13
Вопрос. Теоретический. Есть список команд. Команды отправляю в обработку некой функции, по очереди. Разные команды могут давать разные результаты после обработки. В зависимос...
Serjone
7
A couple thoughts from a random internet stranger: 1. If you want this project to gain traction you cannot keep being negative. If I just came here after finding out about Kd...
Eric Wild
46
We heading to 1.1$ 🤔?
CryptoBo$$
35
Всем вечера. Подскажите как лучше сделать. делаю на Д10 Например будет база данных на SQLite. в ней будет много таблиц. более 50шт Типа справочник. Содержать ID Name Id p...
Андрей Т 🐎
10
Сonst magicTgHTML = (text, entities) => { let processedText = text; let offsetShift = 0; entities.forEach(entity => { const { offset, length, type, url, ...
Андрей
1
А если для werf организовать отдельный репозиторий, а сервисы из проекта подключить как симлинки? И симлинки в гитигнор добавить?
Dmitriy Andreev
13
Ideally, when we launch a game from a particular studio, that studio should have the right to access the uniqs from their game on our wallet. For example, if you die in a Ubis...
Lisandru
16
Карта сайта